Replace SetWaitableTimerEx with SetWaitableTimer

This makes the build work on retroarch's build server, and keeps
compatibility with Windows Vista (although we hardly test for that).
This commit is contained in:
Henrik Rydgård committed 2024-07-29 08:11:19 -06:00
1 parent 2e74efb2fc
commit 592d9c5d69
1 file changed
+2 -1
+2 -1
View File
@@ -283,7 +283,8 @@ void sleep_precise(double seconds) {
break;
LARGE_INTEGER due;
due.QuadPart = -(sleepTicks > maxTicks ? maxTicks : sleepTicks);
SetWaitableTimerEx(Timer, &due, 0, NULL, NULL, NULL, 0);
// Note: SetWaitableTimerEx is not available on Vista.
SetWaitableTimer(Timer, &due, 0, NULL, NULL, NULL);
WaitForSingleObject(Timer, INFINITE);
QueryPerformanceCounter(&qpc);
}