diff --git a/Zend/zend_operators.h b/Zend/zend_operators.h index 6987409f164..7f831f93ffb 100644 --- a/Zend/zend_operators.h +++ b/Zend/zend_operators.h @@ -451,8 +451,10 @@ ZEND_API void zend_update_current_locale(void); #define zend_update_current_locale() #endif +#ifndef offsetof #define offsetof(t,f) \ ((int)(&((t*)0)->f)) +#endif static zend_always_inline int fast_increment_function(zval *op1) {