Skip to content

Commit

Permalink
Merge pull request #569 from SnowyMouse/gbenum-fix
Browse files Browse the repository at this point in the history
Fix GB_ENUM on C++
  • Loading branch information
LIJI32 authored Nov 26, 2023
2 parents 1c8a14f + 8657d3e commit bce4138
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/save_state.h
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit bce4138

Please sign in to comment.