From: Andreas Färber Date: Sat, 14 Aug 2010 18:51:50 +0000 (+0200) Subject: TCG: Fix Darwin/ppc calling convention recognition X-Git-Tag: v0.14.0-rc0~787 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e9119cd864a0db039339994b502f8701fd6209ff;p=thirdparty%2Fqemu.git TCG: Fix Darwin/ppc calling convention recognition 5da79c86a3744e3a901c7986c109dd06951befd2 broke compilation on Mac OS X v10.5 ppc. Apple's GCC 4.0.1 does not define _CALL_DARWIN. Recognize __APPLE__ again as well. Signed-off-by: Andreas F?rber Cc: malc Cc: Paolo Bonzini Cc: J?rgen Lock Cc: Stefan Weil Signed-off-by: malc --- diff --git a/tcg/ppc/tcg-target.h b/tcg/ppc/tcg-target.h index 53024282dad..a1f85997c6a 100644 --- a/tcg/ppc/tcg-target.h +++ b/tcg/ppc/tcg-target.h @@ -65,7 +65,7 @@ enum { /* used for function call generation */ #define TCG_REG_CALL_STACK TCG_REG_R1 #define TCG_TARGET_STACK_ALIGN 16 -#if defined _CALL_DARWIN +#if defined _CALL_DARWIN || defined __APPLE__ #define TCG_TARGET_CALL_STACK_OFFSET 24 #elif defined _CALL_AIX #define TCG_TARGET_CALL_STACK_OFFSET 52