aboutsummaryrefslogtreecommitdiffstats
path: root/include/serd
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-12-18 11:15:04 +0100
committerDavid Robillard <d@drobilla.net>2020-12-18 11:15:04 +0100
commitfabf7113483ffd70024df989de3aa9361146d60c (patch)
treea2b9d7c19ee02b5fe33bf9b2db3baf54a2113deb /include/serd
parenta89a3dfac582b7f41f8442c9f1a66725beb26218 (diff)
downloadserd-fabf7113483ffd70024df989de3aa9361146d60c.tar.gz
serd-fabf7113483ffd70024df989de3aa9361146d60c.tar.bz2
serd-fabf7113483ffd70024df989de3aa9361146d60c.zip
Fix build on ancient GCC
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