Skip to content

Commit 0a0313a

Browse files
author
neal.norwitz
committed
Fix compiler warning about finite() missing on Solaris.
git-svn-id: http://svn.python.org/projects/python/trunk@61992 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent 870ed3e commit 0a0313a

File tree

5 files changed

+15
-3
lines changed

5 files changed

+15
-3
lines changed

Objects/complexobject.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
#include "Python.h"
99
#include "structmember.h"
1010

11+
#ifdef HAVE_IEEEFP_H
12+
#include <ieeefp.h>
13+
#endif
14+
1115
#ifndef WITHOUT_COMPLEX
1216

1317
/* Precisions used by repr() and str(), respectively.

Objects/floatobject.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
#include <ctype.h>
1111
#include <float.h>
1212

13+
#ifdef HAVE_IEEEFP_H
14+
#include <ieeefp.h>
15+
#endif
16+
1317
#include "formatter_string.h"
1418

1519
#if !defined(__STDC__)

configure

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#! /bin/sh
2-
# From configure.in Revision: 61722 .
2+
# From configure.in Revision: 61847 .
33
# Guess values for system-dependent variables and create Makefiles.
44
# Generated by GNU Autoconf 2.61 for python 2.6.
55
#
@@ -5419,11 +5419,12 @@ done
54195419

54205420

54215421

5422+
54225423

54235424

54245425
for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
54255426
fcntl.h grp.h \
5426-
io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5427+
ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
54275428
shadow.h signal.h stdint.h stropts.h termios.h thread.h \
54285429
unistd.h utime.h \
54295430
sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \

configure.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1099,7 +1099,7 @@ dnl AC_MSG_RESULT($cpp_type)
10991099
AC_HEADER_STDC
11001100
AC_CHECK_HEADERS(asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
11011101
fcntl.h grp.h \
1102-
io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
1102+
ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
11031103
shadow.h signal.h stdint.h stropts.h termios.h thread.h \
11041104
unistd.h utime.h \
11051105
sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \

pyconfig.h.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,9 @@
300300
/* Define to 1 if you have the `hypot' function. */
301301
#undef HAVE_HYPOT
302302

303+
/* Define to 1 if you have the <ieeefp.h> header file. */
304+
#undef HAVE_IEEEFP_H
305+
303306
/* Define if you have the 'inet_aton' function. */
304307
#undef HAVE_INET_ATON
305308

0 commit comments

Comments
 (0)