From: Paul Eggert Date: Sat, 20 Feb 2016 15:52:53 +0000 (-0800) Subject: signbit: port back to pre-C++11 GCC X-Git-Tag: v1.0~6802 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=a0bfcb8ecdbdb00418fbbf2e5acc8a12d56f8936;p=gnulib.git 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/ --- diff --git a/ChangeLog b/ChangeLog index 7e06adf12a..86345798ca 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2016-02-20 Paul Eggert + + 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 mountlist: recognize autofs-mounted remote file systems, too diff --git a/lib/math.in.h b/lib/math.in.h index afb080c252..e3fd99437d 100644 --- a/lib/math.in.h +++ b/lib/math.in.h @@ -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) \