diff options
Diffstat (limited to 'GTMDefines.h')
-rw-r--r-- | GTMDefines.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/GTMDefines.h b/GTMDefines.h index c615d9f..5a41e6e 100644 --- a/GTMDefines.h +++ b/GTMDefines.h @@ -341,7 +341,11 @@ #endif #ifndef GTM_NONNULL - #define GTM_NONNULL(x) __attribute__((nonnull(x))) + #if __has_attribute(nonnull) + #define GTM_NONNULL(x) __attribute__((nonnull x)) + #else + #define GTM_NONNULL(x) + #endif #endif // Invalidates the initializer from which it's called. |