mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
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:
1 parent
2e74efb2fc
commit
592d9c5d69
1 file changed
+2
-1
+2
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user