comparison src/thread/SDL_thread.c @ 1471:9fb0eee04dd9

Enabled libc support on Win32, so we don't break binary compatibility in 1.2
author Sam Lantinga <slouken@libsdl.org>
date Mon, 06 Mar 2006 07:42:36 +0000
parents d910939febfa
children ad887c988713
comparison
equal deleted inserted replaced
1470:d47d96962fcc 1471:9fb0eee04dd9
207 207
208 /* Run the function */ 208 /* Run the function */
209 *statusloc = userfunc(userdata); 209 *statusloc = userfunc(userdata);
210 } 210 }
211 211
212 #if defined(__WIN32__) || defined(__OS2__) 212 #ifdef SDL_PASSED_BEGINTHREAD_ENDTHREAD
213 #undef SDL_CreateThread 213 #undef SDL_CreateThread
214 DECLSPEC SDL_Thread * SDLCALL SDL_CreateThread(int (*fn)(void *), void *data, pfnSDL_CurrentBeginThread pfnBeginThread, pfnSDL_CurrentEndThread pfnEndThread) 214 DECLSPEC SDL_Thread * SDLCALL SDL_CreateThread(int (*fn)(void *), void *data, pfnSDL_CurrentBeginThread pfnBeginThread, pfnSDL_CurrentEndThread pfnEndThread)
215 #else 215 #else
216 DECLSPEC SDL_Thread * SDLCALL SDL_CreateThread(int (*fn)(void *), void *data) 216 DECLSPEC SDL_Thread * SDLCALL SDL_CreateThread(int (*fn)(void *), void *data)
217 #endif 217 #endif
248 248
249 /* Add the thread to the list of available threads */ 249 /* Add the thread to the list of available threads */
250 SDL_AddThread(thread); 250 SDL_AddThread(thread);
251 251
252 /* Create the thread and go! */ 252 /* Create the thread and go! */
253 #if defined(__WIN32__) || defined(__OS2__) 253 #ifdef SDL_PASSED_BEGINTHREAD_ENDTHREAD
254 ret = SDL_SYS_CreateThread(thread, args, pfnBeginThread, pfnEndThread); 254 ret = SDL_SYS_CreateThread(thread, args, pfnBeginThread, pfnEndThread);
255 #else 255 #else
256 ret = SDL_SYS_CreateThread(thread, args); 256 ret = SDL_SYS_CreateThread(thread, args);
257 #endif 257 #endif
258 if ( ret >= 0 ) { 258 if ( ret >= 0 ) {