Reported by G. Branden Robinson <g.branden.robinson@gmail.com> in
<https://lists.gnu.org/archive/html/bug-gnulib/2024-11/msg00180.html>.
* lib/math.in.h (signbit): In C++ 11 or newer, assume that <math.h> or
<cmath> may define signbit through three inline functions.
+2024-12-06 Bruno Haible <bruno@clisp.org>
+
+ signbit: Fix compilation error with g++ 5.5 on Solaris 10.
+ Reported by G. Branden Robinson <g.branden.robinson@gmail.com> in
+ <https://lists.gnu.org/archive/html/bug-gnulib/2024-11/msg00180.html>.
+ * lib/math.in.h (signbit): In C++ 11 or newer, assume that <math.h> or
+ <cmath> may define signbit through three inline functions.
+
2024-12-03 Bruno Haible <bruno@clisp.org>
strerror_r-posix: Silence gcc 14 warning.
# if defined signbit || defined GNULIB_NAMESPACE
_GL_MATH_CXX_REAL_FLOATING_DECL_1 (signbit)
# undef signbit
-# if __GNUC__ >= 6 || (defined __clang__ && !((defined __APPLE__ && defined __MACH__) || defined __FreeBSD__ || defined __OpenBSD__ || defined _AIX || (defined _WIN32 && !defined __CYGWIN__)))
+# if __cplusplus >= 201103L || __GNUC__ >= 6 || (defined __clang__ && !((defined __APPLE__ && defined __MACH__) || defined __FreeBSD__ || defined __OpenBSD__ || defined _AIX || (defined _WIN32 && !defined __CYGWIN__)))
/* This platform's <cmath> possibly defines signbit through a set of inline
functions. */
_GL_MATH_CXX_REAL_FLOATING_DECL_2 (signbit, rpl_signbit, bool)