aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJanis Johnson <janis187@us.ibm.com>2007-04-19 16:58:42 +0000
committerJanis Johnson <janis@gcc.gnu.org>2007-04-19 16:58:42 +0000
commit93167356ebb812e6dfff00310d777eed6b304512 (patch)
tree38553df380587fe24961797c2f96cb6127b90606 /gcc
parent589dd99500036f68b79498a347248e19d82651ce (diff)
downloadgcc-93167356ebb812e6dfff00310d777eed6b304512.zip
gcc-93167356ebb812e6dfff00310d777eed6b304512.tar.gz
gcc-93167356ebb812e6dfff00310d777eed6b304512.tar.bz2
float.h: Check that __STDC_WANT_DEC_FP__ is defined, not that it is 1.
* ginclude/float.h: Check that __STDC_WANT_DEC_FP__ is defined, not that it is 1. From-SVN: r123974
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog3
-rw-r--r--gcc/ginclude/float.h4
2 files changed, 5 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index af9e9fd..3b53eb2 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,8 @@
2007-04-19 Janis Johnson <janis187@us.ibm.com>
+ * ginclude/float.h: Check that __STDC_WANT_DEC_FP__ is defined,
+ not that it is 1.
+
* c-cppbuiltin.c (c_cpp_builtins): Remove definition of
__STDC_WANT_DEC_FP__.
diff --git a/gcc/ginclude/float.h b/gcc/ginclude/float.h
index 1e16e88..23ce8f4 100644
--- a/gcc/ginclude/float.h
+++ b/gcc/ginclude/float.h
@@ -160,7 +160,7 @@ Boston, MA 02110-1301, USA. */
#endif /* C99 */
-#if __STDC_WANT_DEC_FP__ == 1
+#ifdef __STDC_WANT_DEC_FP__
/* Draft Technical Report 24732, extension for decimal floating-point
arithmetic: Characteristic of decimal floating types <float.h>. */
@@ -236,6 +236,6 @@ Boston, MA 02110-1301, USA. */
#undef DECFLT_EVAL_METHOD
#define DECFLT_EVAL_METHOD __DECFLT_EVAL_METHOD__
-#endif /* __STDC_WANT_DEC_FP__ == 1 */
+#endif /* __STDC_WANT_DEC_FP__ */
#endif /* _FLOAT_H___ */