import of readlilne 5.1
[deliverable/binutils-gdb.git] / readline / rlstdc.h
CommitLineData
c862e87b
JM
1/* stdc.h -- macros to make source compile on both ANSI C and K&R C
2 compilers. */
3
4/* Copyright (C) 1993 Free Software Foundation, Inc.
5
6 This file is part of GNU Bash, the Bourne Again SHell.
7
8 Bash is free software; you can redistribute it and/or modify it
9 under the terms of the GNU General Public License as published by
f9267e15 10 the Free Software Foundation; either version 2, or (at your option)
c862e87b
JM
11 any later version.
12
13 Bash is distributed in the hope that it will be useful, but WITHOUT
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
16 License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with Bash; see the file COPYING. If not, write to the Free
f9267e15 20 Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111 USA. */
c862e87b
JM
21
22#if !defined (_RL_STDC_H_)
23#define _RL_STDC_H_
24
25/* Adapted from BSD /usr/include/sys/cdefs.h. */
26
27/* A function can be defined using prototypes and compile on both ANSI C
28 and traditional C compilers with something like this:
84041b4c 29 extern char *func PARAMS((char *, char *, int)); */
c862e87b 30
84041b4c 31#if !defined (PARAMS)
f9267e15 32# if defined (__STDC__) || defined (__GNUC__) || defined (__cplusplus)
84041b4c 33# define PARAMS(protos) protos
f9267e15 34# else
84041b4c
EZ
35# define PARAMS(protos) ()
36# endif
37#endif
38
39#ifndef __attribute__
b585a9fa 40# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
84041b4c 41# define __attribute__(x)
c862e87b 42# endif
f9267e15 43#endif
c862e87b
JM
44
45#endif /* !_RL_STDC_H_ */
This page took 0.025203 seconds and 4 git commands to generate.