src/thread/SDL_thread.c
changeset 1471 9fb0eee04dd9
parent 1402 d910939febfa
child 1499 ad887c988713
--- a/src/thread/SDL_thread.c	Mon Mar 06 06:00:45 2006 +0000
+++ b/src/thread/SDL_thread.c	Mon Mar 06 07:42:36 2006 +0000
@@ -209,7 +209,7 @@
 	*statusloc = userfunc(userdata);
 }
 
-#if defined(__WIN32__) || defined(__OS2__)
+#ifdef SDL_PASSED_BEGINTHREAD_ENDTHREAD
 #undef SDL_CreateThread
 DECLSPEC SDL_Thread * SDLCALL SDL_CreateThread(int (*fn)(void *), void *data, pfnSDL_CurrentBeginThread pfnBeginThread, pfnSDL_CurrentEndThread pfnEndThread)
 #else
@@ -250,7 +250,7 @@
 	SDL_AddThread(thread);
 
 	/* Create the thread and go! */
-#if defined(__WIN32__) || defined(__OS2__)
+#ifdef SDL_PASSED_BEGINTHREAD_ENDTHREAD
 	ret = SDL_SYS_CreateThread(thread, args, pfnBeginThread, pfnEndThread);
 #else
 	ret = SDL_SYS_CreateThread(thread, args);