Fix most of limelight common build for Windows Phone

This commit is contained in:
Cameron Gutman
2014-01-22 20:17:40 -05:00
committed by Michelle Bergeron
parent d4422ced0d
commit 1d20b17850
4 changed files with 68 additions and 3 deletions

View File

@@ -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);