include: Force stack alignment on x86_64.
Signed-off-by: Justas Lavišius <bucaneer@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
71f018cba5
commit
dccb57dfd9
|
@ -64,7 +64,11 @@ extern "C" {
|
||||||
# error You need to define __stdcall for your compiler
|
# error You need to define __stdcall for your compiler
|
||||||
# endif
|
# endif
|
||||||
# elif defined(__x86_64__) && defined (__GNUC__)
|
# 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))
|
# define __stdcall __attribute__((ms_abi))
|
||||||
|
# endif
|
||||||
# else /* __i386__ */
|
# else /* __i386__ */
|
||||||
# define __stdcall
|
# define __stdcall
|
||||||
# endif /* __i386__ */
|
# endif /* __i386__ */
|
||||||
|
@ -78,7 +82,11 @@ extern "C" {
|
||||||
# define __cdecl __attribute__((__cdecl__))
|
# define __cdecl __attribute__((__cdecl__))
|
||||||
# endif
|
# endif
|
||||||
# elif defined(__x86_64__) && defined (__GNUC__)
|
# 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))
|
# define __cdecl __attribute__((ms_abi))
|
||||||
|
# endif
|
||||||
# elif !defined(_MSC_VER)
|
# elif !defined(_MSC_VER)
|
||||||
# define __cdecl
|
# define __cdecl
|
||||||
# endif
|
# endif
|
||||||
|
|
Loading…
Reference in New Issue