diff options
Diffstat (limited to 'src/include/platform.h')
-rw-r--r-- | src/include/platform.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/include/platform.h b/src/include/platform.h index 23e640ec1..4636ddd73 100644 --- a/src/include/platform.h +++ b/src/include/platform.h | |||
@@ -295,4 +295,13 @@ atoll (const char *nptr); | |||
295 | #define GNUNET_THREAD_LOCAL | 295 | #define GNUNET_THREAD_LOCAL |
296 | #endif | 296 | #endif |
297 | 297 | ||
298 | /** | ||
299 | * clang et al do not have such an attribute | ||
300 | */ | ||
301 | #if __has_attribute(__nonstring__) | ||
302 | # define __nonstring __attribute__((__nonstring__)) | ||
303 | #else | ||
304 | # define __nonstring | ||
305 | #endif | ||
306 | |||
298 | #endif | 307 | #endif |