mirror of
https://github.com/php/php-src.git
synced 2024-12-18 14:30:35 +08:00
Merge branch 'PHP-7.4'
* PHP-7.4: Fix #79172: STRUCT_OFFSET() relies on undefined behavior
This commit is contained in:
commit
7e5a8d9faa
@ -15,7 +15,7 @@ This file is public domain and comes with NO WARRANTY of any kind */
|
||||
|
||||
|
||||
/* Comes from global.h as OFFSET, renamed to STRUCT_OFFSET */
|
||||
#define STRUCT_OFFSET(t, f) ((size_t)(char *)&((t *)0)->f)
|
||||
#define STRUCT_OFFSET(t, f) XtOffsetOf(t, f)
|
||||
|
||||
#ifndef __attribute
|
||||
#if !defined(__GNUC__)
|
||||
|
Loading…
Reference in New Issue
Block a user