[Python-checkins] cpython (3.1): Port 5b607cd8c71b (closes #11892)
jesus.cea
python-checkins at python.org
Wed Apr 20 22:41:44 CEST 2011
http://hg.python.org/cpython/rev/358a0dd0a9f2
changeset: 69496:358a0dd0a9f2
branch: 3.1
parent: 69484:ef95702b555e
user: Jesus Cea <jcea at jcea.es>
date: Wed Apr 20 22:26:57 2011 +0200
summary:
Port 5b607cd8c71b (closes #11892)
files:
Include/pyport.h | 4 ++++
Objects/complexobject.c | 4 ----
Objects/floatobject.c | 4 ----
3 files changed, 4 insertions(+), 8 deletions(-)
diff --git a/Include/pyport.h b/Include/pyport.h
--- a/Include/pyport.h
+++ b/Include/pyport.h
@@ -279,6 +279,10 @@
#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" */
/********************************************
diff --git a/Objects/complexobject.c b/Objects/complexobject.c
--- 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
/* elementary operations on complex numbers */
diff --git a/Objects/floatobject.c b/Objects/floatobject.c
--- 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 */
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list