summaryrefslogtreecommitdiff
path: root/base.h
diff options
context:
space:
mode:
Diffstat (limited to 'base.h')
-rw-r--r--base.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/base.h b/base.h
index 4cbb1dc..94ff2bf 100644
--- a/base.h
+++ b/base.h
@@ -31,7 +31,12 @@
#include <float.h>
#include <limits.h>
#include <assert.h>
+#if __linux__ || _WIN32
#include <uchar.h>
+#else
+// OpenBSD has uchar.h but it doesn't seem to define char32_t ?
+typedef uint32_t char32_t;
+#endif
#if !__TINYC__ && __STDC_VERSION__ >= 201112
#define static_assert_if_possible(cond) _Static_assert(cond, "Static assertion failed");