mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
workaround for 64-bit platforms
This commit is contained in:
parent
45386d8af4
commit
2a44f45cbe
3 changed files with 7 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue