mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-09-03 06:13:23 +02:00
Fix GB_ENUM on C++
The else branch results in an error from defining a type in a cast.
This commit is contained in:
@@ -25,7 +25,7 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if __clang_major__ >= 8 || __GNUC__ >= 13
|
#if __clang_major__ >= 8 || __GNUC__ >= 13 || defined(__cplusplus)
|
||||||
#define GB_ENUM(type, ...) enum : type __VA_ARGS__
|
#define GB_ENUM(type, ...) enum : type __VA_ARGS__
|
||||||
#else
|
#else
|
||||||
#define GB_ENUM(type, ...) __typeof__((type)((enum __VA_ARGS__)0))
|
#define GB_ENUM(type, ...) __typeof__((type)((enum __VA_ARGS__)0))
|
||||||
|
Reference in New Issue
Block a user