float.h: Check that __STDC_WANT_DEC_FP__ is defined, not that it is 1.
authorJanis Johnson <janis187@us.ibm.com>
Thu, 19 Apr 2007 16:58:42 +0000 (16:58 +0000)
committerJanis Johnson <janis@gcc.gnu.org>
Thu, 19 Apr 2007 16:58:42 +0000 (16:58 +0000)
* ginclude/float.h: Check that __STDC_WANT_DEC_FP__ is defined,
not that it is 1.

From-SVN: r123974

gcc/ChangeLog
gcc/ginclude/float.h

index af9e9fd48f4c5de0512d74b3bccbf763bc56a770..3b53eb27954aa607b062c015e6fbee3642d4d756 100644 (file)
@@ -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__.
 
index 1e16e8884d731d8638e61964814d5f71db0515df..23ce8f42c9144b46f69b6a17beb4049eafad77a7 100644 (file)
@@ -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___ */