From 62b3ade524ca2b7b07ce3ce3dfb30fbcdca76d83 Mon Sep 17 00:00:00 2001 From: YexuanXiao Date: Mon, 23 Dec 2024 09:44:01 +0800 Subject: [PATCH] Revert the changes in base.h --- include/fmt/base.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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)