mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-04-23 08:29:15 +00:00
Fix most of limelight common build for Windows Phone
This commit is contained in:
committed by
Michelle Bergeron
parent
d4422ced0d
commit
1d20b17850
@@ -35,8 +35,10 @@ void* ThreadProc(void* context) {
|
||||
#endif
|
||||
|
||||
void PltSleepMs(int ms) {
|
||||
#ifdef LC_WINDOWS
|
||||
#if defined(LC_WINDOWS)
|
||||
Sleep(ms);
|
||||
#elif defined (LC_WINDOWS_PHONE)
|
||||
WaitForSingleObjectEx(GetCurrentThread(), ms, FALSE);
|
||||
#else
|
||||
long usecs = (long)ms * 1000;
|
||||
usleep(usecs);
|
||||
|
||||
Reference in New Issue
Block a user