summaryrefslogtreecommitdiff
path: root/src/include/platform.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/platform.h')
-rw-r--r--src/include/platform.h9
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);
#define GNUNET_THREAD_LOCAL
#endif
+/**
+ * clang et al do not have such an attribute
+ */
+#if __has_attribute(__nonstring__)
+# define __nonstring __attribute__((__nonstring__))
+#else
+# define __nonstring
+#endif
+
#endif