Skip to content
Snippets Groups Projects
Commit de9982f0 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard
Browse files

include: Use __builtin_offsetof on Clang.


Fixes a number of warning on MSVC target.

Signed-off-by: default avatarJacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard's avatarAlexandre Julliard <julliard@winehq.org>
parent 622b0e29
Branches
Tags
No related merge requests found
......@@ -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))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment