From 9fdfaaf9af621d45c849061ea05bd3f2c37232c8 Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Fri, 28 Mar 2008 05:34:59 +0000 Subject: Fix compiler warning about finite() missing on Solaris. --- Objects/complexobject.c | 4 ++++ Objects/floatobject.c | 4 ++++ configure | 5 +++-- configure.in | 2 +- pyconfig.h.in | 3 +++ 5 files changed, 15 insertions(+), 3 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 +#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 #include +#ifdef HAVE_IEEEFP_H +#include +#endif + #include "formatter_string.h" #if !defined(__STDC__) diff --git a/configure b/configure index 052d780..ad9f562 100755 --- a/configure +++ b/configure @@ -1,5 +1,5 @@ #! /bin/sh -# From configure.in Revision: 61722 . +# From configure.in Revision: 61847 . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.61 for python 2.6. # @@ -5421,9 +5421,10 @@ done + for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \ fcntl.h grp.h \ -io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \ +ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \ shadow.h signal.h stdint.h stropts.h termios.h thread.h \ unistd.h utime.h \ sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \ diff --git a/configure.in b/configure.in index 4e5944b..37c1279 100644 --- a/configure.in +++ b/configure.in @@ -1099,7 +1099,7 @@ dnl AC_MSG_RESULT($cpp_type) AC_HEADER_STDC AC_CHECK_HEADERS(asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \ fcntl.h grp.h \ -io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \ +ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \ shadow.h signal.h stdint.h stropts.h termios.h thread.h \ unistd.h utime.h \ sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \ diff --git a/pyconfig.h.in b/pyconfig.h.in index 55ab6b2..425ebee 100644 --- a/pyconfig.h.in +++ b/pyconfig.h.in @@ -300,6 +300,9 @@ /* Define to 1 if you have the `hypot' function. */ #undef HAVE_HYPOT +/* Define to 1 if you have the header file. */ +#undef HAVE_IEEEFP_H + /* Define if you have the 'inet_aton' function. */ #undef HAVE_INET_ATON -- cgit v0.12