diff src/thread/SDL_thread_c.h @ 1361:19418e4422cb

New configure-based build system. Still work in progress, but much improved
author Sam Lantinga <slouken@libsdl.org>
date Thu, 16 Feb 2006 10:11:48 +0000
parents c9b51268668f
children d910939febfa
line wrap: on
line diff
--- 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 */