From 5324d7c5d7312766a181321c07487fdbdf84e0c4 Mon Sep 17 00:00:00 2001 From: IRainman Date: Mon, 6 Jul 2026 22:49:21 +0300 Subject: [PATCH] * added crutch for compilers that do not properly support constexpr if --- include/fast_float/float_common.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/include/fast_float/float_common.h b/include/fast_float/float_common.h index acaef40..9f7ed07 100644 --- a/include/fast_float/float_common.h +++ b/include/fast_float/float_common.h @@ -255,12 +255,16 @@ using parse_options = parse_options_t; #ifndef FASTFLOAT_ASSERT #define FASTFLOAT_ASSERT(x) \ - { ((void)(x)); } + { \ + ((void)(x)); \ + } #endif #ifndef FASTFLOAT_DEBUG_ASSERT #define FASTFLOAT_DEBUG_ASSERT(x) \ - { ((void)(x)); } + { \ + ((void)(x)); \ + } #endif // rust style `try!()` macro, or `?` operator @@ -440,6 +444,8 @@ fastfloat_strncasecmp5(UC const *actual_mixedcase, return (actual_mixedcase[4] | 32) == (expected_lowercase[4]); } } + // crutch for older GCC and MinGW probably. + return false; } // Compares two ASCII strings in a case insensitive manner.