mirror of
https://github.com/python/cpython.git
synced 2025-08-21 17:25:34 +00:00
Guard uintptr_t test with HAVE_STDINT_H, test for
stdint.h.
This commit is contained in:
parent
da70fd1599
commit
33bb6102ec
3 changed files with 16 additions and 7 deletions
|
@ -3,6 +3,10 @@
|
||||||
|
|
||||||
#include "pyconfig.h" /* include for defines */
|
#include "pyconfig.h" /* include for defines */
|
||||||
|
|
||||||
|
#ifdef HAVE_STDINT_H
|
||||||
|
#include <stdint.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
Symbols and macros to supply platform-independent interfaces to basic
|
Symbols and macros to supply platform-independent interfaces to basic
|
||||||
C language & library operations whose spellings vary across platforms.
|
C language & library operations whose spellings vary across platforms.
|
||||||
|
|
11
configure
vendored
11
configure
vendored
|
@ -1,5 +1,5 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# From configure.in Revision: 51998 .
|
# From configure.in Revision: 52087 .
|
||||||
# Guess values for system-dependent variables and create Makefiles.
|
# Guess values for system-dependent variables and create Makefiles.
|
||||||
# Generated by GNU Autoconf 2.59 for python 2.5.
|
# Generated by GNU Autoconf 2.59 for python 2.5.
|
||||||
#
|
#
|
||||||
|
@ -4629,12 +4629,13 @@ done
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
|
for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
|
||||||
fcntl.h grp.h \
|
fcntl.h grp.h \
|
||||||
shadow.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
|
io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
|
||||||
signal.h stropts.h termios.h thread.h \
|
shadow.h signal.h stdint.h stropts.h termios.h thread.h \
|
||||||
unistd.h utime.h \
|
unistd.h utime.h \
|
||||||
sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \
|
sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \
|
||||||
sys/modem.h \
|
sys/modem.h \
|
||||||
|
@ -10084,7 +10085,9 @@ _ACEOF
|
||||||
cat confdefs.h >>conftest.$ac_ext
|
cat confdefs.h >>conftest.$ac_ext
|
||||||
cat >>conftest.$ac_ext <<_ACEOF
|
cat >>conftest.$ac_ext <<_ACEOF
|
||||||
/* end confdefs.h. */
|
/* end confdefs.h. */
|
||||||
#include <stdint.h>
|
#ifdef HAVE_STDINT_H
|
||||||
|
#include <stdint.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
int
|
int
|
||||||
main ()
|
main ()
|
||||||
|
|
|
@ -1068,8 +1068,8 @@ dnl AC_MSG_RESULT($cpp_type)
|
||||||
AC_HEADER_STDC
|
AC_HEADER_STDC
|
||||||
AC_CHECK_HEADERS(asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
|
AC_CHECK_HEADERS(asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
|
||||||
fcntl.h grp.h \
|
fcntl.h grp.h \
|
||||||
shadow.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
|
io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
|
||||||
signal.h stropts.h termios.h thread.h \
|
shadow.h signal.h stdint.h stropts.h termios.h thread.h \
|
||||||
unistd.h utime.h \
|
unistd.h utime.h \
|
||||||
sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \
|
sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \
|
||||||
sys/modem.h \
|
sys/modem.h \
|
||||||
|
@ -1199,7 +1199,9 @@ fi
|
||||||
|
|
||||||
AC_CHECK_TYPES(uintptr_t,
|
AC_CHECK_TYPES(uintptr_t,
|
||||||
[AC_CHECK_SIZEOF(uintptr_t, 4)],
|
[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>.
|
# Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue