diff options
-rw-r--r-- | readline/rldefs.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/readline/rldefs.h b/readline/rldefs.h index 4a28bd1e49c..5cba9a5ac32 100644 --- a/readline/rldefs.h +++ b/readline/rldefs.h @@ -32,6 +32,10 @@ #include "rlstdc.h" +#if !defined(__attribute__) && (defined(__cplusplus) || !defined(__GNUC__) || __GNUC__ == 2 && __GNUC_MINOR__ <8) +#define __attribute__(A) +#endif + #if defined (_POSIX_VERSION) && !defined (TERMIOS_MISSING) # define TERMIOS_TTY_DRIVER #else |