src/thread/SDL_thread_c.h
changeset 1361 19418e4422cb
parent 1312 c9b51268668f
child 1402 d910939febfa
--- a/src/thread/SDL_thread_c.h	Fri Feb 10 07:29:08 2006 +0000
+++ b/src/thread/SDL_thread_c.h	Thu Feb 16 10:11:48 2006 +0000
@@ -23,8 +23,32 @@
 #ifndef _SDL_thread_c_h
 #define _SDL_thread_c_h
 
-#include "SDL_error_c.h"
-#include "SDL_systhread_c.h"
+/* Need the definitions of SYS_ThreadHandle */
+#if SDL_THREADS_DISABLED
+#include "generic/SDL_systhread_c.h"
+#elif SDL_THREAD_AMIGA
+#include "amigaos/SDL_systhread_c.h"
+#elif SDL_THREAD_BEOS
+#include "beos/SDL_systhread_c.h"
+#elif SDL_THREAD_DC
+#include "dc/SDL_systhread_c.h"
+#elif SDL_THREAD_EPOC
+#include "epoc/SDL_systhread_c.h"
+#elif SDL_THREAD_OS2
+#include "os2/SDL_systhread_c.h"
+#elif SDL_THREAD_PTH
+#include "pth/SDL_systhread_c.h"
+#elif SDL_THREAD_PTHREAD
+#include "pthread/SDL_systhread_c.h"
+#elif SDL_THREAD_SPROC
+#include "irix/SDL_systhread_c.h"
+#elif SDL_THREAD_WIN32
+#include "win32/SDL_systhread_c.h"
+#else
+#error Need thread implementation for this platform
+#include "generic/SDL_systhread_c.h"
+#endif
+#include "../SDL_error_c.h"
 
 /* This is the system-independent thread info structure */
 struct SDL_Thread {
@@ -38,7 +62,4 @@
 /* This is the function called to run a thread */
 extern void SDL_RunThread(void *data);
 
-/* Routine to get the thread-specific error variable */
-extern SDL_error *SDL_GetErrBuf(void);
-
 #endif /* _SDL_thread_c_h */