From fabf7113483ffd70024df989de3aa9361146d60c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 18 Dec 2020 11:15:04 +0100 Subject: Fix build on ancient GCC --- include/serd/serd.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.1