summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_clang.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/nxt_clang.h')
-rw-r--r--src/nxt_clang.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/nxt_clang.h b/src/nxt_clang.h
index 6803ffc8..872f1527 100644
--- a/src/nxt_clang.h
+++ b/src/nxt_clang.h
@@ -131,6 +131,17 @@
#endif
+#if (NXT_HAVE_GCC_ATTRIBUTE_NONSTRING)
+
+#define NXT_NONSTRING __attribute__((__nonstring__))
+
+#else
+
+#define NXT_NONSTRING
+
+#endif
+
+
#if (NXT_HAVE_BUILTIN_POPCOUNT)
#define nxt_popcount __builtin_popcount