Previous 15994 Revisions Next

r12355 Thursday 28th July, 2011 at 01:52:07 UTC by R. Belmont
cothreads: fixed to run on PowerPC Mac OS X (nw)
[src/lib/cothread]ppc.c

src/lib/cothread/ppc.c
r12354r12355
1313#include <stdint.h>
1414#include <string.h>
1515
16#define LIBCO_MPROTECT defined(__unix__) && !defined(LIBCO_PPC_ASM)
16#define LIBCO_MPROTECT (defined(__unix__) && !defined(LIBCO_PPC_ASM)) || defined(SDLMAME_MACOSX)
1717
1818#if LIBCO_MPROTECT
1919   #include <unistd.h>
r12354r12355
4646/* Whether function calls are indirect through a descriptor,
4747or are directly to function */
4848#ifndef LIBCO_PPCDESC
49#ifdef SDLMAME_MACOSX
50   #define LIBCO_PPCDESC 0
51#else
4952   #if !defined(_CALL_SYSV) && (defined(_CALL_AIX) || defined(_CALL_AIXDESC) || defined(LIBCO_PPC64))
5053      #define LIBCO_PPCDESC 1
5154   #endif
5255#endif
56#endif
5357
5458#ifdef LIBCO_PPC_ASM
5559

Previous 15994 Revisions Next


© 1998-2018 The MESS Team