src/timer/windows/SDL_systimer.c
changeset 9222 f4ef6e5fb804
parent 8583 fb2933ca805f
equal deleted inserted replaced
9221:0702f9d6e2b1 9222:f4ef6e5fb804
   184         return 1000;
   184         return 1000;
   185     }
   185     }
   186     return frequency.QuadPart;
   186     return frequency.QuadPart;
   187 }
   187 }
   188 
   188 
   189 #ifdef __WINRT__
   189 /* Sleep() is not publicly available to apps in early versions of WinRT.
       
   190  *
       
   191  * Visual C++ 2013 Update 4 re-introduced Sleep() for Windows 8.1 and
       
   192  * Windows Phone 8.1.
       
   193  *
       
   194  * Use the compiler version to determine availability.
       
   195  *
       
   196  * NOTE #1: _MSC_FULL_VER == 180030723 for Visual C++ 2013 Update 3.
       
   197  * NOTE #2: Visual C++ 2013, when compiling for Windows 8.0 and
       
   198  *    Windows Phone 8.0, uses the Visual C++ 2012 compiler to build
       
   199  *    apps and libraries.
       
   200  */
       
   201 #if defined(__WINRT__) && defined(_MSC_FULL_VER) && (_MSC_FULL_VER <= 180030723)
   190 static void
   202 static void
   191 Sleep(DWORD timeout)
   203 Sleep(DWORD timeout)
   192 {
   204 {
   193     static HANDLE mutex = 0;
   205     static HANDLE mutex = 0;
   194     if ( ! mutex )
   206     if ( ! mutex )