From ada9a30ceabe01abbad9e42955bb96ef7697b742 Mon Sep 17 00:00:00 2001 From: "mark.dickinson" Date: Sun, 4 Jan 2009 17:02:05 +0000 Subject: [PATCH] Fix HAVE_DECL_ISINF/ISNAN test (again). git-svn-id: http://svn.python.org/projects/python/trunk@68304 6015fed2-1504-0410-9fe1-9d1591cc4771 --- Include/pymath.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Include/pymath.h b/Include/pymath.h index 9e0f46f9ba..ca84dd93e3 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)) -- 2.11.4.GIT