Kaydet (Commit) 6cb2bddb authored tarafından Mark Dickinson's avatar Mark Dickinson

Merged revisions 68304 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/trunk

........
  r68304 | mark.dickinson | 2009-01-04 17:02:05 +0000 (Sun, 04 Jan 2009) | 2 lines

  Fix HAVE_DECL_ISINF/ISNAN test (again).
........
üst 7894a725
......@@ -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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment