Modification to format.h to suppress C4574 on MSVC
In Visual Studio 2017, C4574: 'identifier' is defined to be '0': did you mean to use '#if identifier'?
This commit is contained in:
parent
1a398b5404
commit
eb090b3b01
@ -119,7 +119,8 @@ typedef __int64 intmax_t;
|
||||
# define FMT_GNUC_LIBSTD_VERSION (__GNUC_LIBSTD__ * 100 + __GNUC_LIBSTD_MINOR__)
|
||||
#endif
|
||||
|
||||
#ifdef __has_feature
|
||||
// GLM defines __has_feature to '0' which causes MSVC to throw C4574
|
||||
#if defined(__has_feature) && __has_feature
|
||||
# define FMT_HAS_FEATURE(x) __has_feature(x)
|
||||
#else
|
||||
# define FMT_HAS_FEATURE(x) 0
|
||||
|
||||
Loading…
Reference in New Issue
Block a user