summaryrefslogtreecommitdiff
path: root/types.h
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-01-02 18:35:17 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2020-01-02 18:35:17 -0500
commit43408ef4df909452c7a10992daff911bab97040d (patch)
treeb61784acef5b0700f9d6917f472ac8fdde32e490 /types.h
parentdf5ba27d799df6700cd9a8c9d94f88b7f2623fa3 (diff)
fixed goto problem when compiling as c++
Diffstat (limited to 'types.h')
-rw-r--r--types.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/types.h b/types.h
index 0925018..eefe2a9 100644
--- a/types.h
+++ b/types.h
@@ -31,6 +31,13 @@ typedef uint32_t U32;
typedef uint64_t U64;
#define U64_MAX UINT64_MAX
+#if __STDC_VERSION__ >= 199901
+#include <stdbool.h>
+#else
+typedef U8 bool;
+#endif
+
+
typedef int8_t I8;
#define I8_MAX INT8_MAX
typedef int16_t I16;