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,7 +168,11 @@ typedef struct SECURITY_ATTRIBUTES SECURITY_ATTRIBUTES;
# ifdef __x86_64__ # ifdef __x86_64__
# define __stdcall __attribute__((ms_abi)) # define __stdcall __attribute__((ms_abi))
# else # else
# define __stdcall __attribute__((__stdcall__)) # 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 # endif
# define WINAPI __stdcall # define WINAPI __stdcall