mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
require C99 bool
This commit is contained in:
parent
2195d537b3
commit
a9296e7f3b
6 changed files with 21 additions and 85 deletions
10
configure.ac
10
configure.ac
|
@ -2128,17 +2128,7 @@ if test "$have_long_double" = yes ; then
|
|||
AC_CHECK_SIZEOF(long double, 16)
|
||||
fi
|
||||
|
||||
|
||||
AC_MSG_CHECKING(for _Bool support)
|
||||
have_c99_bool=no
|
||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[_Bool x; x = (_Bool)0;]])],[
|
||||
AC_DEFINE(HAVE_C99_BOOL, 1, [Define this if you have the type _Bool.])
|
||||
have_c99_bool=yes
|
||||
],[])
|
||||
AC_MSG_RESULT($have_c99_bool)
|
||||
if test "$have_c99_bool" = yes ; then
|
||||
AC_CHECK_SIZEOF(_Bool, 1)
|
||||
fi
|
||||
|
||||
AC_CHECK_SIZEOF(off_t, [], [
|
||||
#ifdef HAVE_SYS_TYPES_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue