include: Force stack alignment also on Linux to work around the ABI breakage.

oldstable
Alexandre Julliard 2012-12-15 16:49:47 +01:00
parent 0653f7a64d
commit 4adfb787f4
1 changed files with 2 additions and 2 deletions

View File

@ -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__))