diff options
author | David Robillard <d@drobilla.net> | 2021-01-10 19:24:50 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2021-01-10 19:24:50 +0100 |
commit | 2146e945d2d90112054bcb7f557e875594f167ac (patch) | |
tree | ba0cff50027b95edec9e999eb5aa3cf5bfc07e91 | |
parent | 92dc0c4e224c33938daeaff0661ead3764e503f8 (diff) | |
download | serd-2146e945d2d90112054bcb7f557e875594f167ac.tar.gz serd-2146e945d2d90112054bcb7f557e875594f167ac.tar.bz2 serd-2146e945d2d90112054bcb7f557e875594f167ac.zip |
Only use modern deprecated attributes on clang 7 and newer
-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))) |