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:
Alexander Bock 2017-07-06 14:25:16 -04:00 committed by GitHub
parent 1a398b5404
commit eb090b3b01

View File

@ -119,7 +119,8 @@ typedef __int64 intmax_t;
# define FMT_GNUC_LIBSTD_VERSION (__GNUC_LIBSTD__ * 100 + __GNUC_LIBSTD_MINOR__) # define FMT_GNUC_LIBSTD_VERSION (__GNUC_LIBSTD__ * 100 + __GNUC_LIBSTD_MINOR__)
#endif #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) # define FMT_HAS_FEATURE(x) __has_feature(x)
#else #else
# define FMT_HAS_FEATURE(x) 0 # define FMT_HAS_FEATURE(x) 0