Module: wine Branch: master Commit: a5f933541fa7f831f961389b19c297698ff3f969 URL: http://source.winehq.org/git/wine.git/?a=commit;h=a5f933541fa7f831f961389b19...
Author: Nick Burns adger44@hotmail.com Date: Sat Oct 7 14:57:25 2006 -0700
msvcrt/process.h: __stdcall__ defined safely for Mac OSX.
---
include/msvcrt/process.h | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/include/msvcrt/process.h b/include/msvcrt/process.h index 26107e5..0f7c0c6 100644 --- a/include/msvcrt/process.h +++ b/include/msvcrt/process.h @@ -31,7 +31,11 @@ #define _WAIT_GRANDCHILD 1 #ifndef __stdcall # ifdef __i386__ # 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) /* Nothing needs to be done. __stdcall already exists */ # else