From f293d26a6230524e63bead2a0014437edd74ae8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Sat, 8 Mar 2014 01:58:57 +0200 Subject: [PATCH] Use more modern versions of functions that don't exist on Windows Phone --- codec/common/src/WelsThreadLib.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/codec/common/src/WelsThreadLib.cpp b/codec/common/src/WelsThreadLib.cpp index c40d3c82..8dcd0469 100644 --- a/codec/common/src/WelsThreadLib.cpp +++ b/codec/common/src/WelsThreadLib.cpp @@ -69,6 +69,10 @@ #ifdef WINAPI_FAMILY #if !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) #define InitializeCriticalSection(x) InitializeCriticalSectionEx(x, 0, 0) +#define GetSystemInfo(x) GetNativeSystemInfo(x) +#define CreateEvent(attr, reset, init, name) CreateEventEx(attr, name, ((reset) ? CREATE_EVENT_MANUAL_RESET : 0) | ((init) ? CREATE_EVENT_INITIAL_SET : 0), EVENT_ALL_ACCESS) +#define WaitForSingleObject(a, b) WaitForSingleObjectEx(a, b, FALSE) +#define WaitForMultipleObjects(a, b, c, d) WaitForMultipleObjectsEx(a, b, c, d, FALSE) #endif #endif