From c23929fc66b1f94338f7971d28aba94d0ebba0b5 Mon Sep 17 00:00:00 2001 From: RealTimeChris <40668522+RealTimeChris@users.noreply.github.com> Date: Tue, 26 Nov 2024 03:45:28 -0500 Subject: [PATCH] Modifying feature detection macro. --- include/fast_float/constexpr_feature_detect.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fast_float/constexpr_feature_detect.h b/include/fast_float/constexpr_feature_detect.h index d1b3195..22e892a 100644 --- a/include/fast_float/constexpr_feature_detect.h +++ b/include/fast_float/constexpr_feature_detect.h @@ -14,7 +14,7 @@ #define FASTFLOAT_CONSTEXPR14 #endif -#if __cplusplus >= 201703L +#if __cplusplus >= 201703L || (defined(_MSVC_LANG) && _MSVC_LANG >= 201703L) #define FASTFLOAT_IF_CONSTEXPR if constexpr #else #define FASTFLOAT_IF_CONSTEXPR if