diff options
Diffstat (limited to 'readline/rlstdc.h')
-rw-r--r-- | readline/rlstdc.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/readline/rlstdc.h b/readline/rlstdc.h index dac8e98..d6a22b3 100644 --- a/readline/rlstdc.h +++ b/readline/rlstdc.h @@ -26,13 +26,19 @@ /* A function can be defined using prototypes and compile on both ANSI C and traditional C compilers with something like this: - extern char *func __P((char *, char *, int)); */ + extern char *func PARAMS((char *, char *, int)); */ -#if !defined (__P) +#if !defined (PARAMS) # if defined (__STDC__) || defined (__GNUC__) || defined (__cplusplus) -# define __P(protos) protos +# define PARAMS(protos) protos # else -# define __P(protos) () +# define PARAMS(protos) () +# endif +#endif + +#ifndef __attribute__ +# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8) || __STRICT_ANSI__ +# define __attribute__(x) # endif #endif |