Mercurial > sdl-ios-xcode
comparison src/timer/SDL_timer.c @ 5116:e337f792c6a7
Fixed compiling under Visual Studio
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 27 Jan 2011 15:31:00 -0800 |
parents | 481dabb098ef |
children | 427998ff3bcf |
comparison
equal
deleted
inserted
replaced
5115:686d795b1b29 | 5116:e337f792c6a7 |
---|---|
222 SDL_DestroyMutex(data->timermap_lock); | 222 SDL_DestroyMutex(data->timermap_lock); |
223 return -1; | 223 return -1; |
224 } | 224 } |
225 | 225 |
226 data->active = SDL_TRUE; | 226 data->active = SDL_TRUE; |
227 /* !!! FIXME: this is nasty. */ | |
228 #if (defined(__WIN32__) && !defined(_WIN32_WCE)) && !defined(HAVE_LIBC) | |
229 #undef SDL_CreateThread | |
230 data->thread = SDL_CreateThread(SDL_TimerThread, data, NULL, NULL); | |
231 #else | |
227 data->thread = SDL_CreateThread(SDL_TimerThread, data); | 232 data->thread = SDL_CreateThread(SDL_TimerThread, data); |
233 #endif | |
228 if (!data->thread) { | 234 if (!data->thread) { |
229 SDL_TimerQuit(); | 235 SDL_TimerQuit(); |
230 return -1; | 236 return -1; |
231 } | 237 } |
232 | 238 |