]> git.ipfire.org Git - thirdparty/bash.git/blame - lib/readline/rlstdc.h
Imported from ../bash-2.04.tar.gz.
[thirdparty/bash.git] / lib / readline / rlstdc.h
CommitLineData
b72432fd
JA
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
bb70624e 10 the Free Software Foundation; either version 2, or (at your option)
b72432fd
JA
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
bb70624e 20 Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111 USA. */
b72432fd 21
bb70624e
JA
22#if !defined (_RL_STDC_H_)
23#define _RL_STDC_H_
b72432fd
JA
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:
29 extern char *func __P((char *, char *, int)); */
30
bb70624e
JA
31#if !defined (__P)
32# if defined (__STDC__) || defined (__GNUC__) || defined (__cplusplus)
b72432fd 33# define __P(protos) protos
bb70624e 34# else
b72432fd
JA
35# define __P(protos) ()
36# endif
bb70624e 37#endif
b72432fd 38
bb70624e 39#endif /* !_RL_STDC_H_ */