diff options
Diffstat (limited to 'readline/examples/rlfe/extern.h')
-rw-r--r-- | readline/examples/rlfe/extern.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/readline/examples/rlfe/extern.h b/readline/examples/rlfe/extern.h index 2cace2c..e9a5d01 100644 --- a/readline/examples/rlfe/extern.h +++ b/readline/examples/rlfe/extern.h @@ -27,7 +27,14 @@ #define __attribute__(x) #endif +#if !defined (__P) +# if defined (__STDC__) || defined (__GNUC__) || defined (__cplusplus) +# define __P(protos) protos +# else +# define __P(protos) () +# endif +#endif + /* pty.c */ extern int OpenPTY __P((char **)); extern void InitPTY __P((int)); - |