Merge pull request #569 from SnowyMouse/gbenum-fix

Fix GB_ENUM on C++
This commit is contained in:
Lior Halphon
2023-11-26 19:39:23 +02:00
committed by GitHub

View File

@@ -25,7 +25,7 @@
#endif
#endif
#if __clang_major__ >= 8 || __GNUC__ >= 13
#if __clang_major__ >= 8 || __GNUC__ >= 13 || defined(__cplusplus)
#define GB_ENUM(type, ...) enum : type __VA_ARGS__
#else
#define GB_ENUM(type, ...) __typeof__((type)((enum __VA_ARGS__)0))