Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:10:07

0001 /* stdc.h -- macros to make source compile on both ANSI C and K&R C compilers. */
0002 
0003 /* Copyright (C) 1993-2009 Free Software Foundation, Inc.
0004 
0005    This file is part of the GNU Readline Library (Readline), a library
0006    for reading lines of text with interactive input and history editing.      
0007 
0008    Readline is free software: you can redistribute it and/or modify
0009    it under the terms of the GNU General Public License as published by
0010    the Free Software Foundation, either version 3 of the License, or
0011    (at your option) any later version.
0012 
0013    Readline is distributed in the hope that it will be useful,
0014    but WITHOUT ANY WARRANTY; without even the implied warranty of
0015    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0016    GNU General Public License for more details.
0017 
0018    You should have received a copy of the GNU General Public License
0019    along with Readline.  If not, see <http://www.gnu.org/licenses/>.
0020 */
0021 
0022 #if !defined (_RL_STDC_H_)
0023 #define _RL_STDC_H_
0024 
0025 /* Adapted from BSD /usr/include/sys/cdefs.h. */
0026 
0027 /* A function can be defined using prototypes and compile on both ANSI C
0028    and traditional C compilers with something like this:
0029     extern char *func PARAMS((char *, char *, int)); */
0030 
0031 #if !defined (PARAMS)
0032 #  if defined (__STDC__) || defined (__GNUC__) || defined (__cplusplus)
0033 #    define PARAMS(protos) protos
0034 #  else
0035 #    define PARAMS(protos) ()
0036 #  endif
0037 #endif
0038 
0039 #ifndef __attribute__
0040 #  if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
0041 #    define __attribute__(x)
0042 #  endif
0043 #endif
0044 
0045 /* Moved from config.h.in because readline.h:rl_message depends on these
0046    defines. */
0047 #if defined (__STDC__) && defined (HAVE_STDARG_H)
0048 #  define PREFER_STDARG
0049 #  define USE_VARARGS
0050 #else
0051 #  if defined (HAVE_VARARGS_H)
0052 #    define PREFER_VARARGS
0053 #    define USE_VARARGS
0054 #  endif
0055 #endif
0056 
0057 #endif /* !_RL_STDC_H_ */