From cfe4717d86b18aaa7417e31f6de3776e067b7341 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Wed, 28 Feb 2024 00:33:49 +0100 Subject: [PATCH] isnan: Fix compilation error in C++ mode on OpenBSD 7.5-beta. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reported by Christian Weisgerber in . * lib/math.in.h (GNULIB_NAMESPACE_LACKS_ISNAN): Define on all platforms with clang ≥ 14. --- ChangeLog | 8 ++++++++ lib/math.in.h | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a311bc4996..86bc81228a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2024-02-27 Bruno Haible + + isnan: Fix compilation error in C++ mode on OpenBSD 7.5-beta. + Reported by Christian Weisgerber in + . + * lib/math.in.h (GNULIB_NAMESPACE_LACKS_ISNAN): Define on all platforms + with clang ≥ 14. + 2024-02-24 Bruno Haible striconveha tests: Avoid test failure on macOS 12.5. diff --git a/lib/math.in.h b/lib/math.in.h index d07667fdd1..4b00bf78a6 100644 --- a/lib/math.in.h +++ b/lib/math.in.h @@ -2668,7 +2668,7 @@ _GL_MATH_CXX_REAL_FLOATING_DECL_1 (isnan) _GL_MATH_CXX_REAL_FLOATING_DECL_2 (isnan, rpl_isnan, bool) # define isnan rpl_isnan # define GNULIB_NAMESPACE_LACKS_ISNAN 1 -# elif (((defined __APPLE__ && defined __MACH__) || defined __FreeBSD__) && __clang_major__ >= 14) +# elif __clang_major__ >= 14 /* Neither of the two possible _GL_MATH_CXX_REAL_FLOATING_DECL_2 invocations works. Inline functions are already present in /usr/include/c++/v1/math.h, which comes from LLVM. */ -- 2.39.5