From 0c0093842af04738f3046a5a2bc8e8538727ca78 Mon Sep 17 00:00:00 2001 From: "R. Belmont" Date: Thu, 28 Jul 2011 01:51:24 +0000 Subject: [PATCH] cothreads: fixed to run on PowerPC Mac OS X [R. Belmont] --- src/lib/cothread/ppc.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/cothread/ppc.c b/src/lib/cothread/ppc.c index 637ad426ada..5640ad8d2cb 100644 --- a/src/lib/cothread/ppc.c +++ b/src/lib/cothread/ppc.c @@ -13,7 +13,7 @@ floating-point and AltiVec save/restore */ #include #include -#define LIBCO_MPROTECT defined(__unix__) && !defined(LIBCO_PPC_ASM) +#define LIBCO_MPROTECT (defined(__unix__) && !defined(LIBCO_PPC_ASM)) || defined(SDLMAME_MACOSX) #if LIBCO_MPROTECT #include @@ -46,10 +46,14 @@ static thread_local cothread_t co_active_handle = 0; /* Whether function calls are indirect through a descriptor, or are directly to function */ #ifndef LIBCO_PPCDESC +#ifdef SDLMAME_MACOSX + #define LIBCO_PPCDESC 0 +#else #if !defined(_CALL_SYSV) && (defined(_CALL_AIX) || defined(_CALL_AIXDESC) || defined(LIBCO_PPC64)) #define LIBCO_PPCDESC 1 #endif #endif +#endif #ifdef LIBCO_PPC_ASM