diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-01-04 13:57:26 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-01-04 13:57:26 (GMT) |
commit | d181e3a246b52284e3aeb412ef9678dc444eb82a (patch) | |
tree | 18b68f9c0180603629605f62153b61c2fffab0a3 /Include/pymath.h | |
parent | 04b272336d8f4842d752449427ebef608dfcaca3 (diff) | |
download | cpython-d181e3a246b52284e3aeb412ef9678dc444eb82a.zip cpython-d181e3a246b52284e3aeb412ef9678dc444eb82a.tar.gz cpython-d181e3a246b52284e3aeb412ef9678dc444eb82a.tar.bz2 |
isinf and isnan are macros, not functions; fix configure script
to use AC_CHECK_DECLS instead of AC_CHECK_FUNCS for these.
(See discussion in issue #4506)
Diffstat (limited to 'Include/pymath.h')
-rw-r--r-- | Include/pymath.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/pymath.h b/Include/pymath.h index 7cea9ae..13f95b4 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_ISNAN +#ifdef HAVE_DECL_ISNAN #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_ISINF +#ifdef HAVE_DECL_ISINF #define Py_IS_INFINITY(X) isinf(X) #else #define Py_IS_INFINITY(X) ((X) && (X)*0.5 == (X)) |