From 7e3b7dbcb6237e9a7502e5ddd3146b4100845827 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sat, 17 Aug 2013 20:46:34 -0400 Subject: [PATCH] Patched to compile with Visual Studio. --- src/timer/windows/SDL_systimer.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/timer/windows/SDL_systimer.c b/src/timer/windows/SDL_systimer.c index afa77c14a..c3b54f5df 100644 --- a/src/timer/windows/SDL_systimer.c +++ b/src/timer/windows/SDL_systimer.c @@ -108,15 +108,15 @@ SDL_InitTicks(void) 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