Skip to content

Commit b2d6605

Browse files
author
felipe
committed
- Fixed compiler warning (redefinition of offsetof)
git-svn-id: http://svn.php.net/repository/php/php-src/trunk@312264 c90b9560-bf6c-de11-be94-00142212c4b1
1 parent f51ca02 commit b2d6605

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Zend/zend_operators.h

+2
Original file line numberDiff line numberDiff line change
@@ -451,8 +451,10 @@ ZEND_API void zend_update_current_locale(void);
451451
#define zend_update_current_locale()
452452
#endif
453453

454+
#ifndef offsetof
454455
#define offsetof(t,f) \
455456
((int)(&((t*)0)->f))
457+
#endif
456458

457459
static zend_always_inline int fast_increment_function(zval *op1)
458460
{

0 commit comments

Comments
 (0)