include: Use __builtin_offsetof on Clang.
Fixes a number of warning on MSVC target.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit de9982f069
)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
This commit is contained in:
parent
2a51b72ec3
commit
d1d979bf91
|
@ -20,7 +20,7 @@
|
|||
|
||||
#include <corecrt.h>
|
||||
|
||||
#ifdef __GNUC__
|
||||
#if defined(__GNUC__) || defined(__clang__)
|
||||
#define offsetof(s,m) __builtin_offsetof(s,m)
|
||||
#elif defined(_WIN64)
|
||||
#define offsetof(s,m) (size_t)((ptrdiff_t)&(((s*)NULL)->m))
|
||||
|
|
Loading…
Reference in New Issue