src/thread/SDL_thread.c
changeset 1471 9fb0eee04dd9
parent 1402 d910939febfa
child 1499 ad887c988713
     1.1 --- a/src/thread/SDL_thread.c	Mon Mar 06 06:00:45 2006 +0000
     1.2 +++ b/src/thread/SDL_thread.c	Mon Mar 06 07:42:36 2006 +0000
     1.3 @@ -209,7 +209,7 @@
     1.4  	*statusloc = userfunc(userdata);
     1.5  }
     1.6  
     1.7 -#if defined(__WIN32__) || defined(__OS2__)
     1.8 +#ifdef SDL_PASSED_BEGINTHREAD_ENDTHREAD
     1.9  #undef SDL_CreateThread
    1.10  DECLSPEC SDL_Thread * SDLCALL SDL_CreateThread(int (*fn)(void *), void *data, pfnSDL_CurrentBeginThread pfnBeginThread, pfnSDL_CurrentEndThread pfnEndThread)
    1.11  #else
    1.12 @@ -250,7 +250,7 @@
    1.13  	SDL_AddThread(thread);
    1.14  
    1.15  	/* Create the thread and go! */
    1.16 -#if defined(__WIN32__) || defined(__OS2__)
    1.17 +#ifdef SDL_PASSED_BEGINTHREAD_ENDTHREAD
    1.18  	ret = SDL_SYS_CreateThread(thread, args, pfnBeginThread, pfnEndThread);
    1.19  #else
    1.20  	ret = SDL_SYS_CreateThread(thread, args);