aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/serd/serd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/serd/serd.h b/include/serd/serd.h
index 9db354ac..6274957f 100644
--- a/include/serd/serd.h
+++ b/include/serd/serd.h
@@ -43,7 +43,7 @@
# define SERD_CONST_FUNC
#endif
-#ifdef __clang__
+#if defined(__clang__) && __clang_major__ >= 7
# define SERD_NONNULL _Nonnull
# define SERD_NULLABLE _Nullable
# define SERD_ALLOCATED _Null_unspecified