Patched to compile with Visual Studio.
authorRyan C. Gordon <icculus@icculus.org>
Sat, 17 Aug 2013 20:46:34 -0400
changeset 7652 cf8970659129
parent 7651 e36a26e969c7
child 7653 9a0e274b8aa7
Patched to compile with Visual Studio.
src/timer/windows/SDL_systimer.c
--- a/src/timer/windows/SDL_systimer.c	Sat Aug 17 17:14:15 2013 -0700
+++ b/src/timer/windows/SDL_systimer.c	Sat Aug 17 20:46:34 2013 -0400
@@ -108,15 +108,15 @@
 Uint32
 SDL_GetTicks(void)
 {
-    if (!ticks_started) {
-        SDL_InitTicks();
-    }
-
     DWORD now;
 #ifndef USE_GETTICKCOUNT
     LARGE_INTEGER hires_now;
 #endif
 
+    if (!ticks_started) {
+        SDL_InitTicks();
+    }
+
 #ifdef USE_GETTICKCOUNT
     now = GetTickCount();
 #else