From 140cc46004cf9093a7426c98c84204db3172e995 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sun, 31 Dec 2017 03:35:41 -0500 Subject: [PATCH] windows: Use WaitForSingleObjectEx() always This is available since Windows XP, so it's safe to use always, not just in a WinRT ifdef. --- src/thread/windows/SDL_syssem.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/thread/windows/SDL_syssem.c b/src/thread/windows/SDL_syssem.c index 138cadc06..abcfc8226 100644 --- a/src/thread/windows/SDL_syssem.c +++ b/src/thread/windows/SDL_syssem.c @@ -90,11 +90,7 @@ SDL_SemWaitTimeout(SDL_sem * sem, Uint32 timeout) } else { dwMilliseconds = (DWORD) timeout; } -#if __WINRT__ switch (WaitForSingleObjectEx(sem->id, dwMilliseconds, FALSE)) { -#else - switch (WaitForSingleObject(sem->id, dwMilliseconds)) { -#endif case WAIT_OBJECT_0: InterlockedDecrement(&sem->count); retval = 0;