Fixed compiling under Visual Studio
This commit is contained in:
parent
e253e1d991
commit
1d518f0d73
3 changed files with 7 additions and 1 deletions
|
@ -224,7 +224,13 @@ SDL_TimerInit(void)
|
|||
}
|
||||
|
||||
data->active = SDL_TRUE;
|
||||
/* !!! FIXME: this is nasty. */
|
||||
#if (defined(__WIN32__) && !defined(_WIN32_WCE)) && !defined(HAVE_LIBC)
|
||||
#undef SDL_CreateThread
|
||||
data->thread = SDL_CreateThread(SDL_TimerThread, data, NULL, NULL);
|
||||
#else
|
||||
data->thread = SDL_CreateThread(SDL_TimerThread, data);
|
||||
#endif
|
||||
if (!data->thread) {
|
||||
SDL_TimerQuit();
|
||||
return -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue