i-bash/lib/readline/rlstdc.h

58 lines
1.8 KiB
C
Raw Normal View History

2009-01-12 13:36:28 +00:00
/* stdc.h -- macros to make source compile on both ANSI C and K&R C compilers. */
1999-02-19 17:11:39 +00:00
2009-01-12 13:36:28 +00:00
/* Copyright (C) 1993-2009 Free Software Foundation, Inc.
1999-02-19 17:11:39 +00:00
2009-01-12 13:36:28 +00:00
This file is part of the GNU Readline Library (Readline), a library
for reading lines of text with interactive input and history editing.
1999-02-19 17:11:39 +00:00
2009-01-12 13:36:28 +00:00
Readline is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
1999-02-19 17:11:39 +00:00
2009-01-12 13:36:28 +00:00
Readline is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
1999-02-19 17:11:39 +00:00
You should have received a copy of the GNU General Public License
2009-01-12 13:36:28 +00:00
along with Readline. If not, see <http://www.gnu.org/licenses/>.
*/
1999-02-19 17:11:39 +00:00
2000-03-17 21:46:59 +00:00
#if !defined (_RL_STDC_H_)
#define _RL_STDC_H_
1999-02-19 17:11:39 +00:00
/* Adapted from BSD /usr/include/sys/cdefs.h. */
/* A function can be defined using prototypes and compile on both ANSI C
and traditional C compilers with something like this:
2001-11-13 17:56:06 +00:00
extern char *func PARAMS((char *, char *, int)); */
1999-02-19 17:11:39 +00:00
2001-11-13 17:56:06 +00:00
#if !defined (PARAMS)
2000-03-17 21:46:59 +00:00
# if defined (__STDC__) || defined (__GNUC__) || defined (__cplusplus)
2001-11-13 17:56:06 +00:00
# define PARAMS(protos) protos
2000-03-17 21:46:59 +00:00
# else
2001-11-13 17:56:06 +00:00
# define PARAMS(protos) ()
1999-02-19 17:11:39 +00:00
# endif
2000-03-17 21:46:59 +00:00
#endif
1999-02-19 17:11:39 +00:00
2001-11-13 17:56:06 +00:00
#ifndef __attribute__
2004-07-27 13:29:18 +00:00
# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
2001-11-13 17:56:06 +00:00
# define __attribute__(x)
# endif
#endif
2001-04-06 19:14:31 +00:00
/* Moved from config.h.in because readline.h:rl_message depends on these
defines. */
#if defined (__STDC__) && defined (HAVE_STDARG_H)
# define PREFER_STDARG
# define USE_VARARGS
#else
# if defined (HAVE_VARARGS_H)
# define PREFER_VARARGS
# define USE_VARARGS
# endif
#endif
2000-03-17 21:46:59 +00:00
#endif /* !_RL_STDC_H_ */