summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston Sequoia <jeremyhu@apple.com>2016-09-19 13:17:39 -0700
committerJeremy Huddleston Sequoia <jeremyhu@apple.com>2016-09-22 14:30:29 -0700
commitad959de4f4fd821cf95522994395ad668eb6756f (patch)
tree0e9b4fc873158105dadbe2922574a5b9318bc963
parent9a9382de9036fc0f3b5555ee4d340c7dd234c424 (diff)
downloadxorg-proto-x11proto-ad959de4f4fd821cf95522994395ad668eb6756f.tar.gz
Xfuncproto: Add support for _X_NOTSAN macro
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com> Reviewed-by: Keith Packard <keithp@keithp.com>
-rw-r--r--Xfuncproto.h.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/Xfuncproto.h.in b/Xfuncproto.h.in
index 8a9530a..8715c9d 100644
--- a/Xfuncproto.h.in
+++ b/Xfuncproto.h.in
@@ -210,4 +210,11 @@ in this Software without prior written authorization from The Open Group.
# endif
#endif
+/* requires xproto >= 7.0.30 */
+#if __has_attribute(no_sanitize_thread)
+# define _X_NOTSAN __attribute__((no_sanitize_thread))
+#else
+# define _X_NOTSAN
+#endif
+
#endif /* _XFUNCPROTO_H_ */