include: Force stack alignment on i386.

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Józef Kucia 2018-05-23 12:14:47 +02:00 committed by Alexandre Julliard
parent f2697b0eba
commit d3c59c1a01

View File

@ -168,8 +168,12 @@ typedef struct SECURITY_ATTRIBUTES SECURITY_ATTRIBUTES;
# ifdef __x86_64__
# define __stdcall __attribute__((ms_abi))
# else
# if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 2)) || defined(__APPLE__)
# define __stdcall __attribute__((__stdcall__)) __attribute__((__force_align_arg_pointer__))
# else
# define __stdcall __attribute__((__stdcall__))
# endif
# endif
# define WINAPI __stdcall
# define STDMETHODCALLTYPE __stdcall