summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2008-03-28 05:34:59 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2008-03-28 05:34:59 (GMT)
commit9fdfaaf9af621d45c849061ea05bd3f2c37232c8 (patch)
tree6813ab4126dc720f5a4003a9b0ba5b09a19590ba /Objects
parent85a896902cd83686ce0c5b8016b361914d588692 (diff)
downloadcpython-9fdfaaf9af621d45c849061ea05bd3f2c37232c8.zip
cpython-9fdfaaf9af621d45c849061ea05bd3f2c37232c8.tar.gz
cpython-9fdfaaf9af621d45c849061ea05bd3f2c37232c8.tar.bz2
Fix compiler warning about finite() missing on Solaris.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/complexobject.c4
-rw-r--r--Objects/floatobject.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/Objects/complexobject.c b/Objects/complexobject.c
index c87b9e8..7f40ed6 100644
--- a/Objects/complexobject.c
+++ b/Objects/complexobject.c
@@ -8,6 +8,10 @@
#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 848a47f..b832f7a 100644
--- a/Objects/floatobject.c
+++ b/Objects/floatobject.c
@@ -10,6 +10,10 @@
#include <ctype.h>
#include <float.h>
+#ifdef HAVE_IEEEFP_H
+#include <ieeefp.h>
+#endif
+
#include "formatter_string.h"
#if !defined(__STDC__)