From 516dc7d860e80c6be4ce1f884c5db5df75803e45 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 19 Feb 2016 17:07:48 -0800 Subject: [PATCH] signbit: port to C++ with GCC 6 * lib/math.in.h (signbit) [__cplusplus]: Do not replace with GCC builtin. Reported by Orion Poplawski in: http://lists.gnu.org/archive/html/bug-gnulib/2016-02/msg00005.html --- ChangeLog | 5 +++++ lib/math.in.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2692bd3dc7..6cadc2dda0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2016-02-19 Paul Eggert + signbit: port to C++ with GCC 6 + * lib/math.in.h (signbit) [__cplusplus]: + Do not replace with GCC builtin. Reported by Orion Poplawski in: + http://lists.gnu.org/archive/html/bug-gnulib/2016-02/msg00005.html + * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX. regex: make it closer to libc diff --git a/lib/math.in.h b/lib/math.in.h index 736d532589..afb080c252 100644 --- a/lib/math.in.h +++ b/lib/math.in.h @@ -2205,7 +2205,7 @@ _GL_WARN_REAL_FLOATING_DECL (isnan); #if @GNULIB_SIGNBIT@ -# if @REPLACE_SIGNBIT_USING_GCC@ +# if @REPLACE_SIGNBIT_USING_GCC@ && !defined __cplusplus # undef signbit /* GCC 4.0 and newer provides three built-ins for signbit. */ # define signbit(x) \ -- 2.39.5