diff --git a/include/fmt/base.h b/include/fmt/base.h index e7fdef43..9bd09fce 100644 --- a/include/fmt/base.h +++ b/include/fmt/base.h @@ -46,11 +46,6 @@ #else # define FMT_MSC_VERSION 0 #endif -#ifdef _MSVC_LANG -# define FMT_CPLUSPLUS _MSVC_LANG -#else -# define FMT_CPLUSPLUS __cplusplus -#endif // Detect standard library versions. #ifdef _GLIBCXX_RELEASE @@ -64,6 +59,12 @@ # define FMT_LIBCPP_VERSION 0 #endif +#ifdef _MSVC_LANG +# define FMT_CPLUSPLUS _MSVC_LANG +#else +# define FMT_CPLUSPLUS __cplusplus +#endif + // Detect __has_*. #ifdef __has_feature # define FMT_HAS_FEATURE(x) __has_feature(x)