147558Sache/* stdc.h -- macros to make source compile on both ANSI C and K&R C 247558Sache compilers. */ 347558Sache 447558Sache/* Copyright (C) 1993 Free Software Foundation, Inc. 547558Sache 647558Sache This file is part of GNU Bash, the Bourne Again SHell. 747558Sache 847558Sache Bash is free software; you can redistribute it and/or modify it 947558Sache under the terms of the GNU General Public License as published by 1058310Sache the Free Software Foundation; either version 2, or (at your option) 1147558Sache any later version. 1247558Sache 1347558Sache Bash is distributed in the hope that it will be useful, but WITHOUT 1447558Sache ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 1547558Sache or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 1647558Sache License for more details. 1747558Sache 1847558Sache You should have received a copy of the GNU General Public License 1947558Sache along with Bash; see the file COPYING. If not, write to the Free 2058310Sache Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111 USA. */ 2147558Sache 2247558Sache#if !defined (_RL_STDC_H_) 2347558Sache#define _RL_STDC_H_ 2447558Sache 2547558Sache/* Adapted from BSD /usr/include/sys/cdefs.h. */ 2647558Sache 2747558Sache/* A function can be defined using prototypes and compile on both ANSI C 2847558Sache and traditional C compilers with something like this: 29119610Sache extern char *func PARAMS((char *, char *, int)); */ 3047558Sache 31119610Sache#if !defined (PARAMS) 3258310Sache# if defined (__STDC__) || defined (__GNUC__) || defined (__cplusplus) 33119610Sache# define PARAMS(protos) protos 3458310Sache# else 35119610Sache# define PARAMS(protos) () 3647558Sache# endif 3758310Sache#endif 3847558Sache 39119610Sache#ifndef __attribute__ 40136644Sache# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8) 41119610Sache# define __attribute__(x) 42119610Sache# endif 43119610Sache#endif 4475406Sache 4547558Sache#endif /* !_RL_STDC_H_ */ 46