diff --git a/src/timer.cpp b/src/timer.cpp index 7376cee3..5c2d0ae3 100644 --- a/src/timer.cpp +++ b/src/timer.cpp @@ -17,7 +17,6 @@ #elif defined _WIN32 # define WIN32_LEAN_AND_MEAN # include -# include // FIXME: this should not be needed #else # include #endif @@ -69,7 +68,7 @@ private: cycles0 = cycles; towait = deltams - ret; if (towait > 5e-4f) // FIXME: use native Win32 stuff - SDL_Delay((int)(towait + 0.5f)); + Sleep((int)(towait + 0.5f)); #else /* The crappy SDL fallback */ Uint32 ticks = SDL_GetTicks();