diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2020-01-02 18:35:17 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2020-01-02 18:35:17 -0500 |
commit | 43408ef4df909452c7a10992daff911bab97040d (patch) | |
tree | b61784acef5b0700f9d6917f472ac8fdde32e490 /types.h | |
parent | df5ba27d799df6700cd9a8c9d94f88b7f2623fa3 (diff) |
fixed goto problem when compiling as c++
Diffstat (limited to 'types.h')
-rw-r--r-- | types.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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; |