aboutsummaryrefslogtreecommitdiffstats
path: root/include/serd
diff options
context:
space:
mode:
Diffstat (limited to 'include/serd')
-rw-r--r--include/serd/serd.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/serd/serd.h b/include/serd/serd.h
index e465809c..12b9f44e 100644
--- a/include/serd/serd.h
+++ b/include/serd/serd.h
@@ -59,8 +59,10 @@
#ifndef SERD_DISABLE_DEPRECATED
# if defined(__clang__)
# define SERD_DEPRECATED_BY(rep) __attribute__((deprecated("", rep)))
-# elif defined(__GNUC__)
+# elif defined(__GNUC__) && __GNUC__ > 4
# define SERD_DEPRECATED_BY(rep) __attribute__((deprecated("Use " rep)))
+# elif defined(__GNUC__)
+# define SERD_DEPRECATED_BY(rep) __attribute__((deprecated))
# else
# define SERD_DEPRECATED_BY(rep)
# endif