From: Jesus Cea Date: Wed, 20 Apr 2011 20:26:57 +0000 (+0200) Subject: Port 5b607cd8c71b (closes #11892) X-Git-Tag: v3.2.1b1~92^2^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2fc8b8749952144679b1f60ee8f9cfdd01d911a7;p=thirdparty%2FPython%2Fcpython.git Port 5b607cd8c71b (closes #11892) --- diff --git a/Include/pyport.h b/Include/pyport.h index 13396a2c590e..17a537992ffc 100644 --- a/Include/pyport.h +++ b/Include/pyport.h @@ -279,6 +279,10 @@ typedef Py_intptr_t Py_ssize_t; #include +#ifdef HAVE_IEEEFP_H +#include /* needed for 'finite' declaration on some platforms */ +#endif + #include /* Moved here from the math section, before extern "C" */ /******************************************** diff --git a/Objects/complexobject.c b/Objects/complexobject.c index 300398e40665..4948a21fb0c0 100644 --- a/Objects/complexobject.c +++ b/Objects/complexobject.c @@ -8,10 +8,6 @@ #include "Python.h" #include "structmember.h" -#ifdef HAVE_IEEEFP_H -#include -#endif - #ifndef WITHOUT_COMPLEX /* elementary operations on complex numbers */ diff --git a/Objects/floatobject.c b/Objects/floatobject.c index 6a2af743affd..8161ed51e23d 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 -#endif - #ifdef _OSF_SOURCE /* OSF1 5.1 doesn't make this available with XOPEN_SOURCE_EXTENDED defined */