From: Sascha Schumann Date: Fri, 2 Jul 1999 21:12:03 +0000 (+0000) Subject: workaround for 64-bit platforms X-Git-Tag: BEFORE_REMOVING_GC_STEP1~52 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2a44f45cbef246085363d0908f031a57a7990753;p=php workaround for 64-bit platforms --- diff --git a/Zend/acconfig.h b/Zend/acconfig.h index 13482bb3b3..7a80526f55 100644 --- a/Zend/acconfig.h +++ b/Zend/acconfig.h @@ -11,9 +11,6 @@ /* define ulong by configure if it is missed (most probably is) */ #undef ulong -/* define zend_bool by configure */ -#undef zend_bool - /* type check for in_addr_t */ #undef in_addr_t diff --git a/Zend/configure.in b/Zend/configure.in index 1e1c9e950c..f60dde5fe7 100644 --- a/Zend/configure.in +++ b/Zend/configure.in @@ -73,7 +73,8 @@ AC_TYPE_SIZE_T dnl This is required for QNX and may be some BSD derived systems AC_CHECK_TYPE( uint, unsigned int ) AC_CHECK_TYPE( ulong, unsigned long ) -AC_CHECK_TYPE( zend_bool, unsigned char ) + +AC_CHECK_SIZEOF(int, 4) dnl Checks for library functions. AC_FUNC_VPRINTF diff --git a/Zend/zend.h b/Zend/zend.h index 9cf2faf218..a9e05a77e5 100644 --- a/Zend/zend.h +++ b/Zend/zend.h @@ -45,6 +45,11 @@ #include "zend_errors.h" #include "zend_alloc.h" +#if SIZEOF_INT == 8 +typedef unsigned int zend_bool; +#else +typedef unsigned char zend_bool; +#endif #undef SUCCESS #undef FAILURE