diff options
Diffstat (limited to 'include/serd')
-rw-r--r-- | include/serd/serd.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/serd/serd.h b/include/serd/serd.h index 6274957f..32488e18 100644 --- a/include/serd/serd.h +++ b/include/serd/serd.h @@ -62,7 +62,7 @@ SERD_CONST_FUNC #ifndef SERD_DISABLE_DEPRECATED -# if defined(__clang__) +# if defined(__clang__) && __clang_major__ >= 7 # define SERD_DEPRECATED_BY(rep) __attribute__((deprecated("", rep))) # elif defined(__GNUC__) && __GNUC__ > 4 # define SERD_DEPRECATED_BY(rep) __attribute__((deprecated("Use " rep))) |