Skip to content

Commit

Permalink
signbit: Fix compilation error with g++ 5.5 on Solaris 10.
Browse files Browse the repository at this point in the history
Reported by G. Branden Robinson <[email protected]> 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.
  • Loading branch information
bhaible committed Dec 6, 2024
1 parent b64ee46 commit 0c5c7fc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
2024-12-06 Bruno Haible <[email protected]>

signbit: Fix compilation error with g++ 5.5 on Solaris 10.
Reported by G. Branden Robinson <[email protected]> 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 <[email protected]>

Update build-aux/po/Makefile.in.in.
Expand Down
2 changes: 1 addition & 1 deletion lib/math.in.h
Original file line number Diff line number Diff line change
Expand Up @@ -2818,7 +2818,7 @@ _GL_EXTERN_C int gl_signbitl (long double arg);
# 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)
Expand Down

0 comments on commit 0c5c7fc

Please sign in to comment.