diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2007-01-21 09:33:07 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2007-01-21 09:33:07 (GMT) |
commit | aef4c6bc00f1b49b4a92b362ef1b60e7c5af5e86 (patch) | |
tree | 5178c9da1e5c1ab76adccafb93802375728594fc /configure.in | |
parent | 71cd55150b01251d0f3b97e426f367a71eed9042 (diff) | |
download | cpython-aef4c6bc00f1b49b4a92b362ef1b60e7c5af5e86.zip cpython-aef4c6bc00f1b49b4a92b362ef1b60e7c5af5e86.tar.gz cpython-aef4c6bc00f1b49b4a92b362ef1b60e7c5af5e86.tar.bz2 |
Patch #1610575: Add support for _Bool to struct.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 1259ccf..1a11ec2 100644 --- a/configure.in +++ b/configure.in @@ -1218,6 +1218,17 @@ if test "$have_long_long" = yes ; then AC_CHECK_SIZEOF(long long, 8) fi +AC_MSG_CHECKING(for _Bool support) +have_c99_bool=no +AC_TRY_COMPILE([], [_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_TYPES(uintptr_t, [AC_CHECK_SIZEOF(uintptr_t, 4)], [], [#ifdef HAVE_STDINT_H |