Mercurial > sdl-ios-xcode
diff src/thread/amigaos/SDL_systhread_c.h @ 255:dcb5e869f8b5
Updated Amiga port by Gabriele Greco
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 16 Dec 2001 20:00:27 +0000 |
parents | e8157fcb3114 |
children | f6ffac90895c |
line wrap: on
line diff
--- a/src/thread/amigaos/SDL_systhread_c.h Fri Dec 14 13:13:20 2001 +0000 +++ b/src/thread/amigaos/SDL_systhread_c.h Sun Dec 16 20:00:27 2001 +0000 @@ -28,7 +28,7 @@ #include <exec/exec.h> #include <dos/dos.h> #include <dos/dostags.h> -#ifdef __SASC +#if defined (__SASC) || defined(STORMC4_WOS) #include <proto/dos.h> #include <proto/exec.h> #else @@ -44,5 +44,25 @@ extern struct ExecBase *SysBase; extern struct DosLibrary *DOSBase; +#ifdef STORMC4_WOS +#include <proto/powerpc.h> + +/* use powerpc.library functions instead og exec */ +#define SYS_ThreadHandle struct TaskPPC * +#define Signal SignalPPC +#define Wait WaitPPC +#define Task TaskPPC +#define FindTask FindTaskPPC +#define SetSignal SetSignalPPC + +#define InitSemaphore InitSemaphorePPC +#define ObtainSemaphore ObtainSemaphorePPC +#define AttemptSemaphore AttemptSemaphorePPC +#define ReleaseSemaphore ReleaseSemaphorePPC +#define SignalSemaphore SignalSemaphorePPC + +#else + #define SYS_ThreadHandle struct Task * +#endif /*STORMC4_WOS*/