]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Guard uintptr_t test with HAVE_STDINT_H, test for
authorMartin v. Löwis <martin@v.loewis.de>
Mon, 2 Oct 2006 15:24:15 +0000 (15:24 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Mon, 2 Oct 2006 15:24:15 +0000 (15:24 +0000)
stdint.h.

Include/pyport.h
configure
configure.in

index 2440c55f7a250cef09fc6395a80796b0a686f43a..fc5ca5f98577133120e488b3ed131bef2dfeb4f8 100644 (file)
@@ -3,6 +3,10 @@
 
 #include "pyconfig.h" /* include for defines */
 
+#ifdef HAVE_STDINT_H
+#include <stdint.h>
+#endif
+
 /**************************************************************************
 Symbols and macros to supply platform-independent interfaces to basic
 C language & library operations whose spellings vary across platforms.
index 69a3da90dd50e2fa497a6f5df2a460cdc25e71c4..5bc56dcd718a7dfbdc6d5cf9564072d8a1700f53 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.in Revision: 52044 .
+# From configure.in Revision: 52088 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.59 for python 2.4.
 #
@@ -4563,11 +4563,12 @@ done
 
 
 
+
 
 
 for ac_header in curses.h dlfcn.h fcntl.h grp.h langinfo.h \
 libintl.h ncurses.h poll.h pthread.h \
-stropts.h termios.h thread.h \
+stdint.h stropts.h termios.h thread.h \
 unistd.h utime.h \
 sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \
 sys/modem.h \
@@ -9468,7 +9469,9 @@ _ACEOF
 cat confdefs.h >>conftest.$ac_ext
 cat >>conftest.$ac_ext <<_ACEOF
 /* end confdefs.h.  */
-#include <stdint.h>
+#ifdef HAVE_STDINT_H
+        #include <stdint.h>
+        #endif
 
 int
 main ()
index d5edd3d36b80579b3d9a5652eae827d6e4debc37..45af720e9f8661e7fa4dc84d73d3e03c4aaa4d27 100644 (file)
@@ -986,7 +986,7 @@ dnl AC_MSG_RESULT($cpp_type)
 AC_HEADER_STDC
 AC_CHECK_HEADERS(curses.h dlfcn.h fcntl.h grp.h langinfo.h \
 libintl.h ncurses.h poll.h pthread.h \
-stropts.h termios.h thread.h \
+stdint.h stropts.h termios.h thread.h \
 unistd.h utime.h \
 sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \
 sys/modem.h \
@@ -1102,7 +1102,9 @@ fi
 
 AC_CHECK_TYPES(uintptr_t, 
    [AC_CHECK_SIZEOF(uintptr_t, 4)], 
-   [], [#include <stdint.h>])
+   [], [#ifdef HAVE_STDINT_H
+        #include <stdint.h>
+        #endif])
 
 
 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.