diff 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
line wrap: on
line diff
--- 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;