From: Jinoh Kang <jinoh.kang.kr(a)gmail.com> TYPE_ALIGNMENT() should return size_t, but FIELD_OFFSET() returns LONG. Fix this by using offsetof() directly, which does return size_t. Fixes: b3c989e6b24 (Added some more useful macros., 2002-10-02) --- include/winnt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/winnt.h b/include/winnt.h index e7c322fd127..5318f9c42ba 100644 --- a/include/winnt.h +++ b/include/winnt.h @@ -406,7 +406,7 @@ extern "C" { #elif defined(__GNUC__) # define TYPE_ALIGNMENT(t) __alignof__(t) #else -# define TYPE_ALIGNMENT(t) FIELD_OFFSET(struct { char x; t test; }, test) +# define TYPE_ALIGNMENT(t) offsetof(struct { char x; t test; }, test) #endif #ifdef _WIN64 -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/5483