00001 /* stdc.h -- macros to make source compile on both ANSI C and K&R C 00002 compilers. */ 00003 00004 /* Copyright (C) 1993 Free Software Foundation, Inc. 00005 00006 This file is part of GNU Bash, the Bourne Again SHell. 00007 00008 Bash is free software; you can redistribute it and/or modify it 00009 under the terms of the GNU General Public License as published by 00010 the Free Software Foundation; either version 2, or (at your option) 00011 any later version. 00012 00013 Bash is distributed in the hope that it will be useful, but WITHOUT 00014 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 00015 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 00016 License for more details. 00017 00018 You should have received a copy of the GNU General Public License 00019 along with Bash; see the file COPYING. If not, write to the Free 00020 Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111 USA. */ 00021 00022 #if !defined (_RL_STDC_H_) 00023 #define _RL_STDC_H_ 00024 00025 /* Adapted from BSD /usr/include/sys/cdefs.h. */ 00026 00027 /* A function can be defined using prototypes and compile on both ANSI C 00028 and traditional C compilers with something like this: 00029 extern char *func PARAMS((char *, char *, int)); */ 00030 00031 #if !defined (PARAMS) 00032 # if defined (__STDC__) || defined (__GNUC__) || defined (__cplusplus) 00033 # define PARAMS(protos) protos 00034 # else 00035 # define PARAMS(protos) () 00036 # endif 00037 #endif 00038 00039 #ifndef __attribute__ 00040 # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8) 00041 # define __attribute__(x) 00042 # endif 00043 #endif 00044 00045 #endif /* !_RL_STDC_H_ */