diff options
| author | Jonathan Wakely <jwakely@redhat.com> | 2016-01-29 10:03:26 +0000 |
|---|---|---|
| committer | Andreas Krebbel <krebbel@gcc.gnu.org> | 2016-01-29 10:03:26 +0000 |
| commit | 00ec75a0a266543a0aa37c20969309b2756f7bcd (patch) | |
| tree | 31f5df221aaa74f5241c71afd89f24e5e8c589a6 /gcc/ginclude | |
| parent | 5453bfed484b93369b42fbf8c1e7750ff3ca5f85 (diff) | |
| download | gcc-00ec75a0a266543a0aa37c20969309b2756f7bcd.zip gcc-00ec75a0a266543a0aa37c20969309b2756f7bcd.tar.gz gcc-00ec75a0a266543a0aa37c20969309b2756f7bcd.tar.bz2 | |
PR c++/69462: Provide FLT_EVAL_METHOD and DECIMAL_DIG in float.h.
gcc/ChangeLog
PR c++/69462
* ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
for C++-11.
From-SVN: r232970
Diffstat (limited to 'gcc/ginclude')
| -rw-r--r-- | gcc/ginclude/float.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/ginclude/float.h b/gcc/ginclude/float.h index 18f5aac..862f7cc 100644 --- a/gcc/ginclude/float.h +++ b/gcc/ginclude/float.h @@ -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 |
