src/lib/cothread/ppc.c
| r12354 | r12355 | |
| 13 | 13 | #include <stdint.h> |
| 14 | 14 | #include <string.h> |
| 15 | 15 | |
| 16 | | #define LIBCO_MPROTECT defined(__unix__) && !defined(LIBCO_PPC_ASM) |
| 16 | #define LIBCO_MPROTECT (defined(__unix__) && !defined(LIBCO_PPC_ASM)) || defined(SDLMAME_MACOSX) |
| 17 | 17 | |
| 18 | 18 | #if LIBCO_MPROTECT |
| 19 | 19 | #include <unistd.h> |
| r12354 | r12355 | |
| 46 | 46 | /* Whether function calls are indirect through a descriptor, |
| 47 | 47 | or are directly to function */ |
| 48 | 48 | #ifndef LIBCO_PPCDESC |
| 49 | #ifdef SDLMAME_MACOSX |
| 50 | #define LIBCO_PPCDESC 0 |
| 51 | #else |
| 49 | 52 | #if !defined(_CALL_SYSV) && (defined(_CALL_AIX) || defined(_CALL_AIXDESC) || defined(LIBCO_PPC64)) |
| 50 | 53 | #define LIBCO_PPCDESC 1 |
| 51 | 54 | #endif |
| 52 | 55 | #endif |
| 56 | #endif |
| 53 | 57 | |
| 54 | 58 | #ifdef LIBCO_PPC_ASM |
| 55 | 59 | |