Commit de9982f0 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

include: Use __builtin_offsetof on Clang.

Fixes a number of warning on MSVC target. Signed-off-by: 's avatarJacek Caban <jacek@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 622b0e29
......@@ -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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment