include: Use force_align_arg_pointer on MacOS to fix the stack on entry to Wine.
This commit is contained in:
parent
e09aecff89
commit
0da92ec9ca
|
@ -52,7 +52,11 @@ extern "C" {
|
||||||
#ifndef __stdcall
|
#ifndef __stdcall
|
||||||
# ifdef __i386__
|
# ifdef __i386__
|
||||||
# ifdef __GNUC__
|
# ifdef __GNUC__
|
||||||
# define __stdcall __attribute__((__stdcall__))
|
# ifdef __APPLE__ /* Mac OSX uses 16-byte aligned stack and not a 4-byte one */
|
||||||
|
# define __stdcall __attribute__((__stdcall__)) __attribute__((__force_align_arg_pointer__))
|
||||||
|
# else
|
||||||
|
# define __stdcall __attribute__((__stdcall__))
|
||||||
|
# endif
|
||||||
# elif defined(_MSC_VER)
|
# elif defined(_MSC_VER)
|
||||||
/* Nothing needs to be done. __stdcall already exists */
|
/* Nothing needs to be done. __stdcall already exists */
|
||||||
# else
|
# else
|
||||||
|
@ -65,7 +69,11 @@ extern "C" {
|
||||||
|
|
||||||
#ifndef __cdecl
|
#ifndef __cdecl
|
||||||
# if defined(__i386__) && defined(__GNUC__)
|
# if defined(__i386__) && defined(__GNUC__)
|
||||||
# define __cdecl __attribute__((__cdecl__))
|
# ifdef __APPLE__ /* Mac OSX uses 16-byte aligned stack and not a 4-byte one */
|
||||||
|
# define __cdecl __attribute__((__cdecl__)) __attribute__((__force_align_arg_pointer__))
|
||||||
|
# else
|
||||||
|
# define __cdecl __attribute__((__cdecl__))
|
||||||
|
# endif
|
||||||
# elif !defined(_MSC_VER)
|
# elif !defined(_MSC_VER)
|
||||||
# define __cdecl
|
# define __cdecl
|
||||||
# endif
|
# endif
|
||||||
|
|
Loading…
Reference in New Issue