src/thread/SDL_thread.c
changeset 1402 d910939febfa
parent 1358 c71e05b4dc2e
child 1471 9fb0eee04dd9
--- a/src/thread/SDL_thread.c	Tue Feb 21 08:34:45 2006 +0000
+++ b/src/thread/SDL_thread.c	Tue Feb 21 08:46:50 2006 +0000
@@ -19,6 +19,7 @@
     Sam Lantinga
     slouken@libsdl.org
 */
+#include "SDL_config.h"
 
 /* System independent thread management routines for SDL */
 
@@ -208,7 +209,7 @@
 	*statusloc = userfunc(userdata);
 }
 
-#if defined(_WIN32) || defined(__OS2__)
+#if defined(__WIN32__) || defined(__OS2__)
 #undef SDL_CreateThread
 DECLSPEC SDL_Thread * SDLCALL SDL_CreateThread(int (*fn)(void *), void *data, pfnSDL_CurrentBeginThread pfnBeginThread, pfnSDL_CurrentEndThread pfnEndThread)
 #else
@@ -249,7 +250,7 @@
 	SDL_AddThread(thread);
 
 	/* Create the thread and go! */
-#if defined(_WIN32) || defined(__OS2__)
+#if defined(__WIN32__) || defined(__OS2__)
 	ret = SDL_SYS_CreateThread(thread, args, pfnBeginThread, pfnEndThread);
 #else
 	ret = SDL_SYS_CreateThread(thread, args);