]> granicus.if.org Git - php/commit
Fix #64780 (PHP 5.5 builds are broken with GCC 3)
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 7 May 2013 18:37:04 +0000 (20:37 +0200)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 7 May 2013 18:37:04 +0000 (20:37 +0200)
commit5b121eb04d358f83e974b6c5fe069c38cf1f960b
tree28641236cd5d6afb814000a4de18c5bb33bf3e52
parentde7415ea559444fe0a0cb4d4b4b7b93c8e19435a
Fix #64780 (PHP 5.5 builds are broken with GCC 3)

A recent change (by me) introduced a call to __builtin_offsetof()
into zend_operators.h which is not defined by GCC prior to
version 4.

Changed the code to use offsetof() instead: this is defined in
<stddef.h>, so #include this header conditionally (#ifdef GNUC)
Zend/zend_operators.h