aboutsummaryrefslogtreecommitdiff
path: root/macros.h
diff options
context:
space:
mode:
Diffstat (limited to 'macros.h')
-rw-r--r--macros.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/macros.h b/macros.h
index 206c18d3..52c24e0e 100644
--- a/macros.h
+++ b/macros.h
@@ -27,6 +27,12 @@
#define HAS_BUILTIN(x) 0
#endif
+#ifdef __has_include
+ #define HAS_INCLUDE(x) __has_include(x)
+#else
+ #define HAS_INCLUDE(x) 0
+#endif
+
#ifdef __has_feature
#define HAS_FEATURE(x) __has_feature(x)
#else