fix macro for check support
This commit is contained in:
parent
6398e5ecfa
commit
0e425a33b7
1 changed files with 2 additions and 0 deletions
|
@ -45,11 +45,13 @@
|
|||
|
||||
// Checks nameof_type compiler compatibility.
|
||||
#if defined(__clang__) || defined(__GNUC__) || defined(_MSC_VER)
|
||||
# undef NAMEOF_TYPE_SUPPORTED
|
||||
# define NAMEOF_TYPE_SUPPORTED 1
|
||||
#endif
|
||||
|
||||
// Checks nameof_enum compiler compatibility.
|
||||
#if defined(__clang__) || defined(__GNUC__) && __GNUC__>= 9 || defined(_MSC_VER)
|
||||
# undef NAMEOF_ENUM_SUPPORTED
|
||||
# define NAMEOF_ENUM_SUPPORTED 1
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue