]> gcc.gnu.org Git - gcc.git/commitdiff
PR c++/69462: Provide FLT_EVAL_METHOD and DECIMAL_DIG in float.h.
authorJonathan Wakely <jwakely@redhat.com>
Fri, 29 Jan 2016 10:03:26 +0000 (10:03 +0000)
committerAndreas Krebbel <krebbel@gcc.gnu.org>
Fri, 29 Jan 2016 10:03:26 +0000 (10:03 +0000)
gcc/ChangeLog

PR c++/69462
* ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
for C++-11.

From-SVN: r232970

gcc/ChangeLog
gcc/ginclude/float.h

index 48c16d15af014bfe2945614c062e2c452e9ba56c..f1e2c29e682757d6c1fff47bed815def467992c3 100644 (file)
@@ -1,3 +1,9 @@
+2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
+
+       PR c++/69462
+       * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
+       for C++-11.
+
 2016-01-29  Richard Biener  <rguenther@suse.de>
 
        PR middle-end/69537
index 18f5aacf9ecd8b2d79dc82eab23db90938e80056..862f7cc40b48362d59d22011dc8ca97f84b39c9b 100644 (file)
@@ -127,7 +127,8 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
 #undef FLT_ROUNDS
 #define FLT_ROUNDS 1
 
-#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
+#if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) \
+     || (defined (__cplusplus) && __cplusplus >= 201103L)
 /* The floating-point expression evaluation method.
         -1  indeterminate
          0  evaluate all operations and constants just to the range and
This page took 0.068703 seconds and 5 git commands to generate.