changeset 37934:369c41de462f

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
author Paul Eggert <eggert@cs.ucla.edu>
date Fri, 19 Feb 2016 17:07:48 -0800
parents ca625fb92958
children afcf04313e5c
files ChangeLog lib/math.in.h
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Fri Feb 19 09:27:41 2016 -0800
+++ b/ChangeLog	Fri Feb 19 17:07:48 2016 -0800
@@ -1,5 +1,10 @@
 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
 
+	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
--- a/lib/math.in.h	Fri Feb 19 09:27:41 2016 -0800
+++ b/lib/math.in.h	Fri Feb 19 17:07:48 2016 -0800
@@ -2205,7 +2205,7 @@
 
 
 #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) \