Browse Source

Only use nullability attributes on clang 7 and newer

These have existed for longer, but the names were changed.
zrythm_meson
David Robillard 1 year ago
parent
commit
92dc0c4e22
  1. 2
      include/serd/serd.h

2
include/serd/serd.h

@ -43,7 +43,7 @@ @@ -43,7 +43,7 @@
# define SERD_CONST_FUNC
#endif
#ifdef __clang__
#if defined(__clang__) && __clang_major__ >= 7
# define SERD_NONNULL _Nonnull
# define SERD_NULLABLE _Nullable
# define SERD_ALLOCATED _Null_unspecified

Loading…
Cancel
Save