summaryrefslogtreecommitdiff
path: root/base.h
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-03-02 18:57:45 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-03-02 18:57:45 -0500
commit5625bc523861cf16c1aade7a4e7e6f8731a24b6e (patch)
treebfed6af1d5ddc60bbc22a1ab8d74036034c67db3 /base.h
parentdd349c6c7e0eba659afc2149fd214f9972826052 (diff)
got OpenBSD build to work
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");