summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-11-28 12:30:36 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-11-28 12:30:36 (GMT)
commit31f0cfef0e2f409d90b67ec5836c217c29be4bb6 (patch)
tree0de006a1d12e0c0af27442aea96335122e61abed /Include
parent8d8f874c19f9b7ea943d5fea12cbd64633cdb9bc (diff)
downloadcpython-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 'Include')
-rw-r--r--Include/pyport.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/pyport.h b/Include/pyport.h
index c0042b5..7c537a9 100644
--- a/Include/pyport.h
+++ b/Include/pyport.h
@@ -305,6 +305,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" */
/********************************************