src/thread/amigaos/SDL_systhread_c.h
author Sam Lantinga <slouken@libsdl.org>
Thu, 16 Feb 2006 10:11:48 +0000
changeset 1361 19418e4422cb
parent 1338 604d73db6802
child 1402 d910939febfa
permissions -rw-r--r--
New configure-based build system. Still work in progress, but much improved
     1 /*
     2     SDL - Simple DirectMedia Layer
     3     Copyright (C) 1997-2006 Sam Lantinga
     4 
     5     This library is free software; you can redistribute it and/or
     6     modify it under the terms of the GNU Lesser General Public
     7     License as published by the Free Software Foundation; either
     8     version 2.1 of the License, or (at your option) any later version.
     9 
    10     This library is distributed in the hope that it will be useful,
    11     but WITHOUT ANY WARRANTY; without even the implied warranty of
    12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    13     Lesser General Public License for more details.
    14 
    15     You should have received a copy of the GNU Lesser General Public
    16     License along with this library; if not, write to the Free Software
    17     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    18 
    19     Sam Lantinga
    20     slouken@libsdl.org
    21 */
    22 
    23 #include <exec/exec.h>
    24 #include <dos/dos.h>
    25 #include <dos/dostags.h>
    26 #if defined (__SASC) || defined(STORMC4_WOS)
    27 #include <proto/dos.h>
    28 #include <proto/exec.h>
    29 #else
    30 #include <inline/dos.h>
    31 #include <inline/exec.h>
    32 #endif
    33 
    34 #include "mydebug.h"
    35 
    36 extern struct ExecBase *SysBase;
    37 extern struct DosLibrary *DOSBase;
    38 
    39 #ifdef STORMC4_WOS
    40 #include <proto/powerpc.h>
    41 
    42 /* use powerpc.library functions instead og exec */
    43 #define SYS_ThreadHandle struct TaskPPC *
    44 #define Signal SignalPPC
    45 #define Wait WaitPPC
    46 #define Task TaskPPC
    47 #define FindTask FindTaskPPC
    48 #define SetSignal SetSignalPPC
    49 
    50 #define InitSemaphore InitSemaphorePPC
    51 #define ObtainSemaphore ObtainSemaphorePPC
    52 #define AttemptSemaphore AttemptSemaphorePPC
    53 #define ReleaseSemaphore ReleaseSemaphorePPC
    54 #define SignalSemaphore SignalSemaphorePPC
    55 
    56 #else
    57 
    58 #define SYS_ThreadHandle struct Task *
    59 #endif /*STORMC4_WOS*/
    60