summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/X11/Xfuncproto.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/X11/Xfuncproto.h b/include/X11/Xfuncproto.h
index 89bc96f..f689073 100644
--- a/include/X11/Xfuncproto.h
+++ b/include/X11/Xfuncproto.h
@@ -218,4 +218,12 @@ in this Software without prior written authorization from The Open Group.
# define _X_NOTSAN
#endif
+/* Mark a char array/pointer as not containing a NUL-terminated string */
+/* requires xproto >= 7.0.33 */
+#if __has_attribute(nonstring)
+# define _X_NONSTRING __attribute__((nonstring))
+#else
+# define _X_NONSTRING
+#endif
+
#endif /* _XFUNCPROTO_H_ */