aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--char32.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/char32.c b/char32.c
index 6bd90e36..e25db3f1 100644
--- a/char32.c
+++ b/char32.c
@@ -6,8 +6,12 @@
#include <wctype.h>
#include <wchar.h>
-#include <stdc-predef.h>
+#if defined __has_include
+ #if __has_include (<stdc-predef.h>)
+ #include <stdc-predef.h>
+ #endif
+#endif
#define LOG_MODULE "char32"
#define LOG_ENABLE_DBG 0