OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [tags/] [start/] [gdb-5.0/] [readline/] [rlstdc.h] - Diff between revs 579 and 1765

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 579 Rev 1765
/* stdc.h -- macros to make source compile on both ANSI C and K&R C
/* stdc.h -- macros to make source compile on both ANSI C and K&R C
   compilers. */
   compilers. */
 
 
/* Copyright (C) 1993 Free Software Foundation, Inc.
/* Copyright (C) 1993 Free Software Foundation, Inc.
 
 
   This file is part of GNU Bash, the Bourne Again SHell.
   This file is part of GNU Bash, the Bourne Again SHell.
 
 
   Bash is free software; you can redistribute it and/or modify it
   Bash is free software; you can redistribute it and/or modify it
   under the terms of the GNU General Public License as published by
   under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 1, or (at your option)
   the Free Software Foundation; either version 1, or (at your option)
   any later version.
   any later version.
 
 
   Bash is distributed in the hope that it will be useful, but WITHOUT
   Bash is distributed in the hope that it will be useful, but WITHOUT
   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
   or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
   or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
   License for more details.
   License for more details.
 
 
   You should have received a copy of the GNU General Public License
   You should have received a copy of the GNU General Public License
   along with Bash; see the file COPYING.  If not, write to the Free
   along with Bash; see the file COPYING.  If not, write to the Free
   Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
   Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
 
 
#if !defined (_RL_STDC_H_)
#if !defined (_RL_STDC_H_)
#define _RL_STDC_H_
#define _RL_STDC_H_
 
 
/* Adapted from BSD /usr/include/sys/cdefs.h. */
/* Adapted from BSD /usr/include/sys/cdefs.h. */
 
 
/* A function can be defined using prototypes and compile on both ANSI C
/* A function can be defined using prototypes and compile on both ANSI C
   and traditional C compilers with something like this:
   and traditional C compilers with something like this:
        extern char *func __P((char *, char *, int)); */
        extern char *func __P((char *, char *, int)); */
 
 
#if defined (__STDC__)
#if defined (__STDC__)
 
 
#  if !defined (__P)
#  if !defined (__P)
#    define __P(protos) protos
#    define __P(protos) protos
#  endif
#  endif
#  define __STRING(x) #x
#  define __STRING(x) #x
 
 
#  if !defined (__GNUC__)
#  if !defined (__GNUC__)
#    define inline
#    define inline
#  endif
#  endif
 
 
#else /* !__STDC__ */
#else /* !__STDC__ */
 
 
#  if !defined (__P)
#  if !defined (__P)
#    define __P(protos) ()
#    define __P(protos) ()
#  endif
#  endif
#  define __STRING(x) "x"
#  define __STRING(x) "x"
 
 
#if defined (__GNUC__)          /* gcc with -traditional */
#if defined (__GNUC__)          /* gcc with -traditional */
#  if !defined (const)
#  if !defined (const)
#    define const  __const
#    define const  __const
#  endif
#  endif
#  if !defined (inline)
#  if !defined (inline)
#    define inline __inline
#    define inline __inline
#  endif
#  endif
#  if !defined (signed)
#  if !defined (signed)
#    define signed __signed
#    define signed __signed
#  endif
#  endif
#  if !defined (volatile)
#  if !defined (volatile)
#    define volatile __volatile
#    define volatile __volatile
#  endif
#  endif
#else /* !__GNUC__ */
#else /* !__GNUC__ */
#  if !defined (const)
#  if !defined (const)
#    define const
#    define const
#  endif
#  endif
#  if !defined (inline)
#  if !defined (inline)
#    define inline
#    define inline
#  endif
#  endif
#  if !defined (signed)
#  if !defined (signed)
#    define signed
#    define signed
#  endif
#  endif
#  if !defined (volatile)
#  if !defined (volatile)
#    define volatile
#    define volatile
#  endif
#  endif
#endif /* !__GNUC__ */
#endif /* !__GNUC__ */
 
 
#endif /* !__STDC__ */
#endif /* !__STDC__ */
 
 
#endif /* !_RL_STDC_H_ */
#endif /* !_RL_STDC_H_ */
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.