summaryrefslogtreecommitdiff
path: root/readline/rlstdc.h
diff options
context:
space:
mode:
Diffstat (limited to 'readline/rlstdc.h')
-rw-r--r--readline/rlstdc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/readline/rlstdc.h b/readline/rlstdc.h
index d2c5f874d7a..f79cf89fe76 100644
--- a/readline/rlstdc.h
+++ b/readline/rlstdc.h
@@ -76,4 +76,8 @@
#endif /* !__STDC__ */
+#if !defined(__attribute__) && (defined(__cplusplus) || !defined(__GNUC__) || __GNUC__ == 2 && __GNUC_MINOR__ < 8)
+#define __attribute__(A)
+#endif
+
#endif /* !_RL_STDC_H_ */