summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/localconsts.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/localconsts.h b/src/localconsts.h
index 51bec578a..3620d441f 100644
--- a/src/localconsts.h
+++ b/src/localconsts.h
@@ -70,7 +70,12 @@
#define A_WARN_UNUSED __attribute__ ((warn_unused_result))
#define DEPRECATED __attribute__ ((deprecated))
#define restrict __restrict__
+
+#if GCC_VERSION < 40900
+#define RETURNS_NONNULL
+#else
#define RETURNS_NONNULL __attribute__((returns_nonnull))
+#endif
#ifndef ENABLE_CILKPLUS
#define A_NONNULL(...) __attribute__((nonnull (__VA_ARGS__)))