]> Savannah Git Hosting - gnulib.git/commitdiff
math: Fix compilation error in C++ mode on macOS 12.5.
authorBruno Haible <bruno@clisp.org>
Thu, 9 Feb 2023 18:27:37 +0000 (19:27 +0100)
committerBruno Haible <bruno@clisp.org>
Thu, 9 Feb 2023 18:27:37 +0000 (19:27 +0100)
* lib/math.in.h (isnan): On macOS, treat clang version 14 again like
clang versions < 12.

ChangeLog
lib/math.in.h

index 5b4e71ad3dae7642c8b0e1bfb780fdcd6d88211f..867107bb14950662560e936c829be22cd576256a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2023-02-09  Bruno Haible  <bruno@clisp.org>
+
+       math: Fix compilation error in C++ mode on macOS 12.5.
+       * lib/math.in.h (isnan): On macOS, treat clang version 14 again like
+       clang versions < 12.
+
 2023-02-09  Bruno Haible  <bruno@clisp.org>
 
        Fix compilation errors in C++ mode on macOS 12.5.
index 70b75e2399ec5ba2e48edd66fee62d290128d3bc..76d48a44437dca9aa0d0b516f844d100666a4366 100644 (file)
@@ -2624,7 +2624,7 @@ _GL_EXTERN_C int rpl_isnanl (long double x) _GL_ATTRIBUTE_CONST;
 #  if defined isnan || defined GNULIB_NAMESPACE
 _GL_MATH_CXX_REAL_FLOATING_DECL_1 (isnan)
 #   undef isnan
-#   if __GNUC__ >= 6 || (defined __clang__ && !((defined __APPLE__ && defined __MACH__ && __clang_major__ < 12) || (defined __FreeBSD__ && (__clang_major__ < 7 || __clang_major__ >= 11)) || defined __OpenBSD__ || (defined _WIN32 && !defined __CYGWIN__)))
+#   if __GNUC__ >= 6 || (defined __clang__ && !((defined __APPLE__ && defined __MACH__ && __clang_major__ != 12) || (defined __FreeBSD__ && (__clang_major__ < 7 || __clang_major__ >= 11)) || defined __OpenBSD__ || (defined _WIN32 && !defined __CYGWIN__)))
   /* This platform's <cmath> possibly defines isnan through a set of inline
      functions.  */
 _GL_MATH_CXX_REAL_FLOATING_DECL_2 (isnan, rpl_isnan, bool)