Reported by Paul E Reimer <reimer@anl.gov> in
<https://lists.gnu.org/archive/html/bug-gettext/2024-02/msg00002.html>.
* lib/math.in.h (GNULIB_NAMESPACE_LACKS_ISNAN): Define also on macOS
with clang ≥ 14.
+2024-02-14 Bruno Haible <bruno@clisp.org>
+
+ isnan: Fix compilation error in C++ mode on macOS 14.4 / Xcode 15.2.
+ Reported by Paul E Reimer <reimer@anl.gov> in
+ <https://lists.gnu.org/archive/html/bug-gettext/2024-02/msg00002.html>.
+ * lib/math.in.h (GNULIB_NAMESPACE_LACKS_ISNAN): Define also on macOS
+ with clang ≥ 14.
+
2024-02-12 Bruno Haible <bruno@clisp.org>
limits-h: Fix BOOL_MAX value.
_GL_MATH_CXX_REAL_FLOATING_DECL_2 (isnan, rpl_isnan, bool)
# define isnan rpl_isnan
# define GNULIB_NAMESPACE_LACKS_ISNAN 1
-# elif (defined __FreeBSD__ && __clang_major__ >= 14)
+# elif (((defined __APPLE__ && defined __MACH__) || defined __FreeBSD__) && __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. */