From 428c9bff9ce809be7eb7e79b6524838aee9d0b6a Mon Sep 17 00:00:00 2001 From: HedgehogInTheCPP Date: Wed, 26 Aug 2026 01:36:23 +0300 Subject: [PATCH] Only disable assume for GCC. --- include/fast_float/constexpr_feature_detect.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/fast_float/constexpr_feature_detect.h b/include/fast_float/constexpr_feature_detect.h index 3568edf..19c4924 100644 --- a/include/fast_float/constexpr_feature_detect.h +++ b/include/fast_float/constexpr_feature_detect.h @@ -115,8 +115,8 @@ #ifdef FASTFLOAT_ASSUME // Use the provided definition. -// #elif FASTFLOAT_HAS_CPP_ATTRIBUTE(assume) -// #define FASTFLOAT_ASSUME(expr) [[assume(expr)]] +#elif FASTFLOAT_HAS_CPP_ATTRIBUTE(assume) && !defined(__GNUC__) +#define FASTFLOAT_ASSUME(expr) [[assume(expr)]] #else #define FASTFLOAT_ASSUME(expr) #endif