]> granicus.if.org Git - php/commitdiff
Fixed bug #64197 (_Offsetof() macro used but not defined on ARM/Clang)
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 13 Feb 2013 11:22:50 +0000 (12:22 +0100)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 13 Feb 2013 11:22:50 +0000 (12:22 +0100)
Updated the code to test for __ARMCC_VERSION instead of __arm, as
that is a more reliable indicator of whether the ARMCC compiler is
being used.

Zend/zend_ini.h

index 2773ebb6c0a9c9f76b92ca2606db01e4f2588081..b27d3d4adde7c3a22a51cda97e4e515b4e5cab15 100644 (file)
@@ -28,7 +28,7 @@
 #define ZEND_INI_ALL (ZEND_INI_USER|ZEND_INI_PERDIR|ZEND_INI_SYSTEM)
 
 #ifndef XtOffsetOf
-# if defined(CRAY) || (defined(__arm) && !defined(LINUX))
+# if defined(CRAY) || (defined(__ARMCC_VERSION) && !defined(LINUX))
 # ifdef __STDC__
 # define XtOffset(p_type, field) _Offsetof(p_type, field)
 # else