Commit 13940871 authored by Justas Lavišius's avatar Justas Lavišius Committed by Michael Stefaniuc

include: Force stack alignment on x86_64.

Signed-off-by: 's avatarJustas Lavišius <bucaneer@gmail.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org> (cherry picked from commit dccb57df) Signed-off-by: 's avatarMichael Stefaniuc <mstefani@winehq.org>
parent 31b09cda
......@@ -64,7 +64,11 @@ extern "C" {
# error You need to define __stdcall for your compiler
# endif
# elif defined(__x86_64__) && defined (__GNUC__)
# if (__GNUC__ > 5) || ((__GNUC__ == 5) && (__GNUC_MINOR__ >= 3))
# define __stdcall __attribute__((ms_abi)) __attribute__((__force_align_arg_pointer__))
# else
# define __stdcall __attribute__((ms_abi))
# endif
# else /* __i386__ */
# define __stdcall
# endif /* __i386__ */
......@@ -78,7 +82,11 @@ extern "C" {
# define __cdecl __attribute__((__cdecl__))
# endif
# elif defined(__x86_64__) && defined (__GNUC__)
# if (__GNUC__ > 5) || ((__GNUC__ == 5) && (__GNUC_MINOR__ >= 3))
# define __cdecl __attribute__((ms_abi)) __attribute__((__force_align_arg_pointer__))
# else
# define __cdecl __attribute__((ms_abi))
# endif
# elif !defined(_MSC_VER)
# define __cdecl
# endif
......
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