[Python-checkins] r68304 - python/trunk/Include/pymath.h
mark.dickinson
python-checkins at python.org
Sun Jan 4 18:02:05 CET 2009
Author: mark.dickinson
Date: Sun Jan 4 18:02:05 2009
New Revision: 68304
Log:
Fix HAVE_DECL_ISINF/ISNAN test (again).
Modified:
python/trunk/Include/pymath.h
Modified: python/trunk/Include/pymath.h
==============================================================================
--- python/trunk/Include/pymath.h (original)
+++ python/trunk/Include/pymath.h Sun Jan 4 18:02:05 2009
@@ -87,7 +87,7 @@
* 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 @@
* 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))
More information about the Python-checkins
mailing list