summaryrefslogtreecommitdiff
path: root/base.h
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-12-29 23:02:42 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2020-12-29 23:02:42 -0500
commit642b09558e586d47f172fcfd18c296d400317708 (patch)
tree796666be6c3721a3c70dad66bd94c902b297e8ab /base.h
parent51837743b0f90973bf63582a8f34662e9677629e (diff)
started config file
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 9b0c805..c6e6de4 100644
--- a/base.h
+++ b/base.h
@@ -51,6 +51,14 @@ typedef unsigned long ulong;
typedef long long llong;
typedef unsigned long long ullong;
+#if __clang__
+#define ENUM_U16 typedef enum : u16
+#define ENUM_U16_END(name) name
+#else
+#define ENUM_U16 enum
+#define ENUM_U16_END(name) ; typedef u16 name
+#endif
+
#ifdef __GNUC__
#define WarnUnusedResult __attribute__((warn_unused_result))
#else