summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston Sequoia <jeremyhu@apple.com>2016-09-19 13:10:34 -0700
committerJeremy Huddleston Sequoia <jeremyhu@apple.com>2016-09-22 14:30:22 -0700
commit4855c9229f00927a343f563db58e261db8a187fa (patch)
treee6cc3a02fdb4e278027a90c0ec86840fe02fe3da
parent3e975a39b002070d245d21838f837aaf6e5c41d0 (diff)
Xfuncproto.h: Define __has_feature() if it isn't already
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com> Reviewed-by: Keith Packard <keithp@keithp.com>
-rw-r--r--Xfuncproto.h.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/Xfuncproto.h.in b/Xfuncproto.h.in
index 5daa83e..8556c27 100644
--- a/Xfuncproto.h.in
+++ b/Xfuncproto.h.in
@@ -79,6 +79,9 @@ in this Software without prior written authorization from The Open Group.
#ifndef __has_attribute
# define __has_attribute(x) 0 /* Compatibility with non-clang compilers. */
#endif
+#ifndef __has_feature
+# define __has_feature(x) 0 /* Compatibility with non-clang compilers. */
+#endif
/* Added in X11R6.9, so available in any version of modular xproto */
#if __has_attribute(__sentinel__) || (defined(__GNUC__) && (__GNUC__ >= 4))