Browse Source

Only use modern deprecated attributes on clang 7 and newer

zrythm_meson
David Robillard 1 year ago
parent
commit
2146e945d2
  1. 2
      include/serd/serd.h

2
include/serd/serd.h

@ -62,7 +62,7 @@ @@ -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)))

Loading…
Cancel
Save