HAVE_INT32_T check in ext/date/lib/timelib_structs.h(php 5.1)
| From: | Kamesh Jayachandran | Date: | Wed, 29 Jun 2005 12:58:38 +0000 |
| Subject: | HAVE_INT32_T check in ext/date/lib/timelib_structs.h(php 5.1) | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-16998@lists.php.net to get a copy of this message | ||
Hi Derick,
Who will define HAVE_INT32_T?
I could see ./configure detects it and defines it in main/php_config.h.
But How ext/date/lib/timelib_structs.h know about this?
I could not see ext/date/lib/timelib_structs.h including
main/php_config.h.
#ifndef HAVE_INT32_T
# if SIZEOF_INT == 4
typedef int int32_t;
# elif SIZEOF_LONG == 4
typedef long int int32_t;
# endif
#endif
My NetWare build is breaking because stdio.h which is included after the
above code block also tries to define int32_t which causes a compilation
error.
#include <php_config.h> this at the start of the file(ofcourse after the
guard) solves the problem.
P.S in Zend/zend_strtod.c also we have similar code(checking for
HAVE_INT32_T) there it works because we include
zend_strtod.h->zend.h>zend_config.h->mail/php_config.h), here we don't
have anything of that sort.
Please do the needful.
With regards
Kamesh Jayachandran
--
http://www.fastmail.fm - A fast, anti-spam email service.