]> git.ipfire.org Git - thirdparty/bash.git/blame - lib/readline/rlstdc.h
Imported from ../bash-4.0-rc1.tar.gz.
[thirdparty/bash.git] / lib / readline / rlstdc.h
CommitLineData
3185942a 1/* stdc.h -- macros to make source compile on both ANSI C and K&R C compilers. */
b72432fd 2
3185942a 3/* Copyright (C) 1993-2009 Free Software Foundation, Inc.
b72432fd 4
3185942a
JA
5 This file is part of the GNU Readline Library (Readline), a library
6 for reading lines of text with interactive input and history editing.
b72432fd 7
3185942a
JA
8 Readline is free software: you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation, either version 3 of the License, or
11 (at your option) any later version.
b72432fd 12
3185942a
JA
13 Readline is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
b72432fd
JA
17
18 You should have received a copy of the GNU General Public License
3185942a
JA
19 along with Readline. If not, see <http://www.gnu.org/licenses/>.
20*/
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:
f73dda09 29 extern char *func PARAMS((char *, char *, int)); */
b72432fd 30
f73dda09 31#if !defined (PARAMS)
bb70624e 32# if defined (__STDC__) || defined (__GNUC__) || defined (__cplusplus)
f73dda09 33# define PARAMS(protos) protos
bb70624e 34# else
f73dda09 35# define PARAMS(protos) ()
b72432fd 36# endif
bb70624e 37#endif
b72432fd 38
f73dda09 39#ifndef __attribute__
b80f6443 40# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
f73dda09
JA
41# define __attribute__(x)
42# endif
43#endif
28ef6c31 44
bb70624e 45#endif /* !_RL_STDC_H_ */