summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-01-04 17:02:05 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-01-04 17:02:05 (GMT)
commit0ebfedf38e0979aec50e6f99fcc5468a5679fd5b (patch)
tree2adf11fee24d4a639f68924ebcbc00c507eb5572 /Include
parent41fbae1ac9bf21a3698846016d29fcabf345123e (diff)
downloadcpython-0ebfedf38e0979aec50e6f99fcc5468a5679fd5b.zip
cpython-0ebfedf38e0979aec50e6f99fcc5468a5679fd5b.tar.gz
cpython-0ebfedf38e0979aec50e6f99fcc5468a5679fd5b.tar.bz2
Fix HAVE_DECL_ISINF/ISNAN test (again).
Diffstat (limited to 'Include')
-rw-r--r--Include/pymath.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/pymath.h b/Include/pymath.h
index 9e0f46f..ca84dd9 100644
--- a/Include/pymath.h
+++ b/Include/pymath.h
@@ -87,7 +87,7 @@ extern double copysign(double, double);
* Note: PC/pyconfig.h defines Py_IS_NAN as _isnan
*/
#ifndef Py_IS_NAN
-#ifdef HAVE_DECL_ISNAN && HAVE_DECL_ISNAN == 1
+#if defined HAVE_DECL_ISNAN && HAVE_DECL_ISNAN == 1
#define Py_IS_NAN(X) isnan(X)
#else
#define Py_IS_NAN(X) ((X) != (X))
@@ -104,7 +104,7 @@ extern double copysign(double, double);
* Note: PC/pyconfig.h defines Py_IS_INFINITY as _isinf
*/
#ifndef Py_IS_INFINITY
-#ifdef HAVE_DECL_ISINF && HAVE_DECL_ISINF == 1
+#if defined HAVE_DECL_ISINF && HAVE_DECL_ISINF == 1
#define Py_IS_INFINITY(X) isinf(X)
#else
#define Py_IS_INFINITY(X) ((X) && (X)*0.5 == (X))