From: Bruno Haible Date: Tue, 27 Feb 2024 23:33:49 +0000 (+0100) Subject: isnan: Fix compilation error in C++ mode on OpenBSD 7.5-beta. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=cfe4717d86b18aaa7417e31f6de3776e067b7341;p=gnulib.git 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. --- 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. */