X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=readline%2Frlstdc.h;h=847fa9c26f4cec0b857391d702035885ae6b0dcb;hb=5bb4d8dedf5ac57875bdcf0928a2bd9e128ee069;hp=dac8e986e10a81b0893f39a1ce8186291be3d5f2;hpb=f9267e152c9c4e2b150366c590674180e66d45df;p=deliverable%2Fbinutils-gdb.git diff --git a/readline/rlstdc.h b/readline/rlstdc.h index dac8e986e1..847fa9c26f 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) +# define __attribute__(x) # endif #endif