Merge branch 'PHP-7.4'

* PHP-7.4:
  Fix #79172: STRUCT_OFFSET() relies on undefined behavior
This commit is contained in:
Christoph M. Becker 2020-01-28 09:19:45 +01:00
commit 7e5a8d9faa

View File

@ -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__)