# HG changeset patch # User Sam Lantinga # Date 1296171060 28800 # Node ID e337f792c6a746968562c1e9c4c13f939c0f7221 # Parent 686d795b1b2936761d865edfa977475bd7d47c1b Fixed compiling under Visual Studio diff -r 686d795b1b29 -r e337f792c6a7 src/timer/SDL_timer.c --- a/src/timer/SDL_timer.c Thu Jan 27 15:58:30 2011 -0600 +++ b/src/timer/SDL_timer.c Thu Jan 27 15:31:00 2011 -0800 @@ -224,7 +224,13 @@ } 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; diff -r 686d795b1b29 -r e337f792c6a7 src/timer/windows/SDL_systimer.c --- a/src/timer/windows/SDL_systimer.c Thu Jan 27 15:58:30 2011 -0600 +++ b/src/timer/windows/SDL_systimer.c Thu Jan 27 15:31:00 2011 -0800 @@ -24,6 +24,7 @@ #ifdef SDL_TIMER_WINDOWS #include "../../core/windows/SDL_windows.h" +#include #include "SDL_timer.h" diff -r 686d795b1b29 -r e337f792c6a7 test/testatomic.c --- a/test/testatomic.c Thu Jan 27 15:58:30 2011 -0600 +++ b/test/testatomic.c Thu Jan 27 15:31:00 2011 -0800 @@ -526,7 +526,6 @@ ReaderData *data = (ReaderData *)_data; SDL_EventQueue *queue = data->queue; SDL_Event event; - int index; if (data->lock_free) { for ( ; ; ) {