1149871Sscottl/* stdc.h -- macros to make source compile on both ANSI C and K&R C 2149871Sscottl compilers. */ 3136849Sscottl 4136849Sscottl/* Copyright (C) 1993 Free Software Foundation, Inc. 5136849Sscottl 6136849Sscottl This file is part of GNU Bash, the Bourne Again SHell. 7136849Sscottl 8136849Sscottl Bash is free software; you can redistribute it and/or modify it 9136849Sscottl under the terms of the GNU General Public License as published by 10136849Sscottl the Free Software Foundation; either version 2, or (at your option) 11136849Sscottl any later version. 12136849Sscottl 13136849Sscottl Bash is distributed in the hope that it will be useful, but WITHOUT 14136849Sscottl ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 15136849Sscottl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 16136849Sscottl License for more details. 17136849Sscottl 18136849Sscottl You should have received a copy of the GNU General Public License 19136849Sscottl along with Bash; see the file COPYING. If not, write to the Free 20136849Sscottl Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111 USA. */ 21136849Sscottl 22136849Sscottl#if !defined (_RL_STDC_H_) 23136849Sscottl#define _RL_STDC_H_ 24136849Sscottl 25136849Sscottl/* Adapted from BSD /usr/include/sys/cdefs.h. */ 26136849Sscottl 27136849Sscottl/* A function can be defined using prototypes and compile on both ANSI C 28136849Sscottl and traditional C compilers with something like this: 29136849Sscottl extern char *func PARAMS((char *, char *, int)); */ 30136849Sscottl 31136849Sscottl#if !defined (PARAMS) 32136849Sscottl# if defined (__STDC__) || defined (__GNUC__) || defined (__cplusplus) 33136849Sscottl# define PARAMS(protos) protos 34149871Sscottl# else 35136849Sscottl# define PARAMS(protos) () 36149871Sscottl# endif 37149871Sscottl#endif 38149871Sscottl 39149871Sscottl#ifndef __attribute__ 40149871Sscottl# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8) 41149871Sscottl# define __attribute__(x) 42149871Sscottl# endif 43149871Sscottl#endif 44149871Sscottl 45149871Sscottl#endif /* !_RL_STDC_H_ */ 46149871Sscottl