zend_strtod.c compile error

php.internals

Stanislav Malyshev

21 years ago
After recent changes, zend_strtod.c from PHP 4 CVS does not compile on my Linux, giving: php4/Zend/zend_strtod.c:234: error: syntax error before "uint32_t" uin32_t is defined in stdint.h which is never included as far as I see.
-- Stanislav Malyshev, Zend Products Engineer stas@zend.com http://www.zend.com/ +972-3-6139665 ext.115

Antony Dovgal

21 years ago
On Tue, 21 Dec 2004 14:33:48 +0200 (IST) Stanislav Malyshev <stas@zend.com> wrote:
> After recent changes, zend_strtod.c from PHP 4 CVS does not compile on > my Linux, giving: > > php4/Zend/zend_strtod.c:234: error: syntax error before "uint32_t" > > uin32_t is defined in stdint.h which is never included as far as I > see. --
I've encountered the same problem, but ./buildconf helped. This happens because Jani recently added a new magic macro to detect little/big endians.
-- Wbr, Antony Dovgal aka tony2001 tony2001@phpclub.net || antony@dovgal.com

Jani Taskinen

21 years ago
On Tue, 21 Dec 2004, Antony Dovgal wrote:
>On Tue, 21 Dec 2004 14:33:48 +0200 (IST) >Stanislav Malyshev <stas@zend.com> wrote: > >> After recent changes, zend_strtod.c from PHP 4 CVS does not compile on >> my Linux, giving: >> >> php4/Zend/zend_strtod.c:234: error: syntax error before "uint32_t" >> >> uin32_t is defined in stdint.h which is never included as far as I >> see. -- > >I've encountered the same problem, but ./buildconf helped.
Yes, buildconf should help since then you'll propably have HAVE_INTTYPES_H and/or HAVE_STDINT_H defined. :) --Jani