windows: Use WaitForSingleObjectEx() always
authorRyan C. Gordon <icculus@icculus.org>
Sun, 31 Dec 2017 03:35:41 -0500
changeset 11794c40f03dda342
parent 11793 3ec030c1ca8e
child 11795 ceab26a45523
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
     1.1 --- a/src/thread/windows/SDL_syssem.c	Sun Dec 31 03:34:16 2017 -0500
     1.2 +++ b/src/thread/windows/SDL_syssem.c	Sun Dec 31 03:35:41 2017 -0500
     1.3 @@ -90,11 +90,7 @@
     1.4      } else {
     1.5          dwMilliseconds = (DWORD) timeout;
     1.6      }
     1.7 -#if __WINRT__
     1.8      switch (WaitForSingleObjectEx(sem->id, dwMilliseconds, FALSE)) {
     1.9 -#else
    1.10 -    switch (WaitForSingleObject(sem->id, dwMilliseconds)) {
    1.11 -#endif
    1.12      case WAIT_OBJECT_0:
    1.13          InterlockedDecrement(&sem->count);
    1.14          retval = 0;