diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-11-28 12:30:36 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-11-28 12:30:36 (GMT) |
commit | 31f0cfef0e2f409d90b67ec5836c217c29be4bb6 (patch) | |
tree | 0de006a1d12e0c0af27442aea96335122e61abed /Objects | |
parent | 8d8f874c19f9b7ea943d5fea12cbd64633cdb9bc (diff) | |
download | cpython-31f0cfef0e2f409d90b67ec5836c217c29be4bb6.zip cpython-31f0cfef0e2f409d90b67ec5836c217c29be4bb6.tar.gz cpython-31f0cfef0e2f409d90b67ec5836c217c29be4bb6.tar.bz2 |
Include ieeefp.h (when available) in pyport.h instead of individually in
Objects/floatobject.c and Objects/complexobject.c. This should silence
compiler warnings about implicit declaration of the 'finite' function
on Solaris.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/complexobject.c | 4 | ||||
-rw-r--r-- | Objects/floatobject.c | 4 |
2 files changed, 0 insertions, 8 deletions
diff --git a/Objects/complexobject.c b/Objects/complexobject.c index f277b66..298e262 100644 --- a/Objects/complexobject.c +++ b/Objects/complexobject.c @@ -8,10 +8,6 @@ #include "Python.h" #include "structmember.h" -#ifdef HAVE_IEEEFP_H -#include <ieeefp.h> -#endif - #ifndef WITHOUT_COMPLEX /* Precisions used by repr() and str(), respectively. diff --git a/Objects/floatobject.c b/Objects/floatobject.c index 461029a..01e5825 100644 --- a/Objects/floatobject.c +++ b/Objects/floatobject.c @@ -15,10 +15,6 @@ #define MAX(x, y) ((x) < (y) ? (y) : (x)) #define MIN(x, y) ((x) < (y) ? (x) : (y)) -#ifdef HAVE_IEEEFP_H -#include <ieeefp.h> -#endif - #ifdef _OSF_SOURCE /* OSF1 5.1 doesn't make this available with XOPEN_SOURCE_EXTENDED defined */ extern int finite(double); |