* lib/math.in.h (signbit): Don't define as a template if the compiler
is clang.
+2026-02-09 Bruno Haible <bruno@clisp.org>
+
+ signbit: Fix compil. error in C++ mode on macOS 14 (regr. 2026-02-03).
+ * lib/math.in.h (signbit): Don't define as a template if the compiler
+ is clang.
+
2026-02-09 Bruno Haible <bruno@clisp.org>
isnan: Fix compilation error in C++ mode on NetBSD (regr. 2026-02-03).
&& (!defined __cplusplus || __cplusplus < 201103))
# undef signbit
/* GCC >= 4.0 and clang provide three built-ins for signbit. */
-# ifdef __cplusplus
+# if defined __cplusplus && !defined __clang__
template <typename T> int signbit (T);
template <> inline int signbit<float> (float x) { return __builtin_signbitf (x); }
template <> inline int signbit<double> (double x) { return __builtin_signbit (x); }
})
# endif
# endif
-# ifdef __cplusplus
+# if defined __cplusplus && !defined __clang__
template <typename T> int signbit (T);
template <> inline int signbit<float> (float x) { return gl_signbitf (x); }
template <> inline int signbit<double> (double x) { return gl_signbitd (x); }