]> Savannah Git Hosting - gnulib.git/commitdiff
signbit: port to C++ with GCC 6
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 20 Feb 2016 01:07:48 +0000 (17:07 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 20 Feb 2016 01:08:53 +0000 (17:08 -0800)
* 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
lib/math.in.h

index 2692bd3dc7c0f56d192823e3b18ab565c1674dde..6cadc2dda00869d52fba20fa47157b40b8655651 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index 736d5325894c4d91abe22eac5b71c220f150a911..afb080c252d7b9e8e6975e27b48cb5903687450a 100644 (file)
@@ -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) \