Alexandre Julliard : include: Force stack alignment also on Linux to work around the ABI breakage.
Alexandre Julliard
julliard at winehq.org
Mon Dec 17 13:58:22 CST 2012
Module: wine
Branch: master
Commit: 4adfb787f4e8c36a37ce1d53a7e6df16d03ecd8a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=4adfb787f4e8c36a37ce1d53a7e6df16d03ecd8a
Author: Alexandre Julliard <julliard at winehq.org>
Date: Sat Dec 15 16:49:47 2012 +0100
include: Force stack alignment also on Linux to work around the ABI breakage.
---
include/windef.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/windef.h b/include/windef.h
index 9cf98e7..eb59353 100644
--- a/include/windef.h
+++ b/include/windef.h
@@ -53,7 +53,7 @@ extern "C" {
#ifndef __stdcall
# ifdef __i386__
# ifdef __GNUC__
-# ifdef __APPLE__ /* Mac OS X uses a 16-byte aligned stack and not a 4-byte one */
+# if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 2)) || defined(__APPLE__)
# define __stdcall __attribute__((__stdcall__)) __attribute__((__force_align_arg_pointer__))
# else
# define __stdcall __attribute__((__stdcall__))
@@ -72,7 +72,7 @@ extern "C" {
#ifndef __cdecl
# if defined(__i386__) && defined(__GNUC__)
-# ifdef __APPLE__ /* Mac OS X uses 16-byte aligned stack and not a 4-byte one */
+# if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 2)) || defined(__APPLE__)
# define __cdecl __attribute__((__cdecl__)) __attribute__((__force_align_arg_pointer__))
# else
# define __cdecl __attribute__((__cdecl__))
More information about the wine-cvs
mailing list