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-Tag: v1.0~365 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=431d6a7615245e6b32d95b4b27aab5d3af65ad2b;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 7d65e27151..af3af3707e 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-27 Collin Funk gnulib-tool.py: Fix configure.ac output. diff --git a/lib/math.in.h b/lib/math.in.h index 85b7e6ff95..72a61d7044 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. */