]> Savannah Git Hosting - gnulib.git/commitdiff
signbit: port back to pre-C++11 GCC
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 20 Feb 2016 15:52:53 +0000 (07:52 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 20 Feb 2016 15:53:38 +0000 (07:53 -0800)
* lib/math.in.h (signbit): Do previous change only if
__cplusplus < 201103.  See Jonathan Wakely in:
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/

ChangeLog
lib/math.in.h

index 7e06adf12ac72f4e1ce72d9372b361a530780a7b..86345798ca179f14d1741f158981dca4f9acb85c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
+
+       signbit: port back to pre-C++11 GCC
+       * lib/math.in.h (signbit): Do previous change only if
+       __cplusplus < 201103.  See Jonathan Wakely in:
+       https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
+
 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
 
        mountlist: recognize autofs-mounted remote file systems, too
index afb080c252d7b9e8e6975e27b48cb5903687450a..e3fd99437d4ae30d27eb910542a6a134d9887f6c 100644 (file)
@@ -2205,7 +2205,8 @@ _GL_WARN_REAL_FLOATING_DECL (isnan);
 
 
 #if @GNULIB_SIGNBIT@
-# if @REPLACE_SIGNBIT_USING_GCC@ && !defined __cplusplus
+# if (@REPLACE_SIGNBIT_USING_GCC@ \
+      && (!defined __cplusplus || __cplusplus < 201103))
 #  undef signbit
    /* GCC 4.0 and newer provides three built-ins for signbit.  */
 #  define signbit(x) \