]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Port 5b607cd8c71b (closes #11892)
authorJesus Cea <jcea@jcea.es>
Wed, 20 Apr 2011 20:26:57 +0000 (22:26 +0200)
committerJesus Cea <jcea@jcea.es>
Wed, 20 Apr 2011 20:26:57 +0000 (22:26 +0200)
Include/pyport.h
Objects/complexobject.c
Objects/floatobject.c

index 13396a2c590e5ccd832d1972338badc1208a2132..17a537992ffc02f871e9ca1547ea4007dd8454fc 100644 (file)
@@ -279,6 +279,10 @@ typedef Py_intptr_t     Py_ssize_t;
 
 #include <stdlib.h>
 
+#ifdef HAVE_IEEEFP_H
+#include <ieeefp.h>  /* needed for 'finite' declaration on some platforms */
+#endif
+
 #include <math.h> /* Moved here from the math section, before extern "C" */
 
 /********************************************
index 300398e406653d25203a931cb08f72270bdbc996..4948a21fb0c0ef01b82811f86a25e9f890b3e65b 100644 (file)
@@ -8,10 +8,6 @@
 #include "Python.h"
 #include "structmember.h"
 
-#ifdef HAVE_IEEEFP_H
-#include <ieeefp.h>
-#endif
-
 #ifndef WITHOUT_COMPLEX
 
 /* elementary operations on complex numbers */
index 6a2af743affd0abb9cb39c5026c08d64fe08108e..8161ed51e23daf60e0f900264aad76cdbd2733b4 100644 (file)
 #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 */