src/thread/SDL_thread_c.h
changeset 1361 19418e4422cb
parent 1312 c9b51268668f
child 1402 d910939febfa
     1.1 --- a/src/thread/SDL_thread_c.h	Fri Feb 10 07:29:08 2006 +0000
     1.2 +++ b/src/thread/SDL_thread_c.h	Thu Feb 16 10:11:48 2006 +0000
     1.3 @@ -23,8 +23,32 @@
     1.4  #ifndef _SDL_thread_c_h
     1.5  #define _SDL_thread_c_h
     1.6  
     1.7 -#include "SDL_error_c.h"
     1.8 -#include "SDL_systhread_c.h"
     1.9 +/* Need the definitions of SYS_ThreadHandle */
    1.10 +#if SDL_THREADS_DISABLED
    1.11 +#include "generic/SDL_systhread_c.h"
    1.12 +#elif SDL_THREAD_AMIGA
    1.13 +#include "amigaos/SDL_systhread_c.h"
    1.14 +#elif SDL_THREAD_BEOS
    1.15 +#include "beos/SDL_systhread_c.h"
    1.16 +#elif SDL_THREAD_DC
    1.17 +#include "dc/SDL_systhread_c.h"
    1.18 +#elif SDL_THREAD_EPOC
    1.19 +#include "epoc/SDL_systhread_c.h"
    1.20 +#elif SDL_THREAD_OS2
    1.21 +#include "os2/SDL_systhread_c.h"
    1.22 +#elif SDL_THREAD_PTH
    1.23 +#include "pth/SDL_systhread_c.h"
    1.24 +#elif SDL_THREAD_PTHREAD
    1.25 +#include "pthread/SDL_systhread_c.h"
    1.26 +#elif SDL_THREAD_SPROC
    1.27 +#include "irix/SDL_systhread_c.h"
    1.28 +#elif SDL_THREAD_WIN32
    1.29 +#include "win32/SDL_systhread_c.h"
    1.30 +#else
    1.31 +#error Need thread implementation for this platform
    1.32 +#include "generic/SDL_systhread_c.h"
    1.33 +#endif
    1.34 +#include "../SDL_error_c.h"
    1.35  
    1.36  /* This is the system-independent thread info structure */
    1.37  struct SDL_Thread {
    1.38 @@ -38,7 +62,4 @@
    1.39  /* This is the function called to run a thread */
    1.40  extern void SDL_RunThread(void *data);
    1.41  
    1.42 -/* Routine to get the thread-specific error variable */
    1.43 -extern SDL_error *SDL_GetErrBuf(void);
    1.44 -
    1.45  #endif /* _SDL_thread_c_h */