summaryrefslogtreecommitdiff
path: root/base.h
diff options
context:
space:
mode:
Diffstat (limited to 'base.h')
-rw-r--r--base.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/base.h b/base.h
index afd320a..293d95e 100644
--- a/base.h
+++ b/base.h
@@ -65,6 +65,14 @@ typedef long long llong;
typedef unsigned long long ullong;
#if __clang__
+#define ENUM_U8 typedef enum : u8
+#define ENUM_U8_END(name) name
+#else
+#define ENUM_U8 enum
+#define ENUM_U8_END(name) ; typedef u8 name
+#endif
+
+#if __clang__
#define ENUM_U16 typedef enum : u16
#define ENUM_U16_END(name) name
#else