changeset 18256:6492e1ca2d5b

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/
author Paul Eggert <eggert@cs.ucla.edu>
date Sat, 20 Feb 2016 07:52:53 -0800
parents 93e9ece52a3c
children 8b8119876a81
files ChangeLog lib/math.in.h
diffstat 2 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Fri Feb 19 10:41:49 2016 +0100
+++ b/ChangeLog	Sat Feb 20 07:52:53 2016 -0800
@@ -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
--- a/lib/math.in.h	Fri Feb 19 10:41:49 2016 +0100
+++ b/lib/math.in.h	Sat Feb 20 07:52:53 2016 -0800
@@ -2205,7 +2205,8 @@
 
 
 #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) \