From a5f933541fa7f831f961389b19c297698ff3f969 Mon Sep 17 00:00:00 2001 From: Nick Burns Date: Sat, 7 Oct 2006 14:57:25 -0700 Subject: [PATCH] msvcrt/process.h: __stdcall__ defined safely for Mac OSX. --- include/msvcrt/process.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/msvcrt/process.h b/include/msvcrt/process.h index 26107e51ca4..0f7c0c6bc6f 100644 --- a/include/msvcrt/process.h +++ b/include/msvcrt/process.h @@ -31,7 +31,11 @@ typedef unsigned short wchar_t; #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 -- 2.11.4.GIT