mirror of
https://github.com/perfect-dark-pc-port/perfect_dark.git
synced 2026-10-23 15:52:41 +02:00
Merge branch 'port' of https://github.com/fgsfdsfgs/perfect_dark into port-net
This commit is contained in:
commit
d8b21f78e0
1 file changed
+5
-1
+5
-1
@@ -25,6 +25,10 @@ static CREATEWAITABLETIMEREXAFN pfnCreateWaitableTimerExA;
|
|||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
#ifndef _GNU_SOURCE
|
||||||
|
#define _GNU_SOURCE 1
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
// figure out how to yield
|
// figure out how to yield
|
||||||
@@ -305,7 +309,7 @@ void sysSleep(const s64 hns)
|
|||||||
SetWaitableTimer(timer, &li, 0, NULL, NULL, FALSE);
|
SetWaitableTimer(timer, &li, 0, NULL, NULL, FALSE);
|
||||||
WaitForSingleObject(timer, INFINITE);
|
WaitForSingleObject(timer, INFINITE);
|
||||||
#else
|
#else
|
||||||
const timespec spec = { 0, hns * 100 };
|
const struct timespec spec = { 0, hns * 100 };
|
||||||
nanosleep(&spec, NULL);
|
nanosleep(&spec, NULL);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user