]> Savannah Git Hosting - gnulib.git/commitdiff
isnan: Fix compilation error in C++ mode on OpenBSD 7.5-beta.
authorBruno Haible <bruno@clisp.org>
Tue, 27 Feb 2024 23:33:49 +0000 (00:33 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 16 Mar 2024 10:43:11 +0000 (11:43 +0100)
Reported by Christian Weisgerber <naddy@mips.inka.de> in
<https://lists.gnu.org/archive/html/bug-gnulib/2024-02/msg00261.html>.

* lib/math.in.h (GNULIB_NAMESPACE_LACKS_ISNAN): Define on all platforms
with clang ≥ 14.

ChangeLog
lib/math.in.h

index a311bc4996bc60959649c41592df6b3274d93f6d..86bc81228a44ed9a277d50077ec294afdfc967e6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2024-02-27  Bruno Haible  <bruno@clisp.org>
+
+       isnan: Fix compilation error in C++ mode on OpenBSD 7.5-beta.
+       Reported by Christian Weisgerber <naddy@mips.inka.de> in
+       <https://lists.gnu.org/archive/html/bug-gnulib/2024-02/msg00261.html>.
+       * lib/math.in.h (GNULIB_NAMESPACE_LACKS_ISNAN): Define on all platforms
+       with clang ≥ 14.
+
 2024-02-24  Bruno Haible  <bruno@clisp.org>
 
        striconveha tests: Avoid test failure on macOS 12.5.
index d07667fdd1abc989442fff27317a844df1a29cbb..4b00bf78a6cbc0422ba70fe609e29df355fe20c5 100644 (file)
@@ -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.  */