]> granicus.if.org Git - php/commit
Include stddef.h in zend_portability.h for offsetof() macro
authorNikita Popov <nikita.ppv@gmail.com>
Fri, 13 Sep 2019 19:52:17 +0000 (21:52 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 13 Sep 2019 22:24:47 +0000 (00:24 +0200)
commitec30a3b1716fa33a1769bc45ab01164711c0dfd9
treeb8e4134b5b5e2d7b9d9d12509fa2662f47f10191
parent4226c8247f5ba8ade3228581bd313fa5692ef4ad
Include stddef.h in zend_portability.h for offsetof() macro

This makes sure that we use compiler builtins when they are
available and thus avoid ubsan warnings in clang.

And also reindent the fallback implementation.
Zend/zend_portability.h