History

Use more modern versions of functions that don't exist on Windows Phone

Martin Storsjö committed 12 years ago

Commit f293d261 parent 4bcb03c1 file · +4 −0Browse files

Showing the changes to codec/common/src/WelsThreadLib.cpp (1 of 1 file). Show all

Unified · Split

codec/common/src/WelsThreadLib.cpp+4−0
@@ -69,6 +69,10 @@ · 68 unmodified lines
6969 #ifdef WINAPI_FAMILY
7070 #if !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
7171 #define InitializeCriticalSection(x) InitializeCriticalSectionEx(x, 0, 0)
72+#define GetSystemInfo(x) GetNativeSystemInfo(x)
73+#define CreateEvent(attr, reset, init, name) CreateEventEx(attr, name, ((reset) ? CREATE_EVENT_MANUAL_RESET : 0) | ((init) ? CREATE_EVENT_INITIAL_SET : 0), EVENT_ALL_ACCESS)
74+#define WaitForSingleObject(a, b) WaitForSingleObjectEx(a, b, FALSE)
75+#define WaitForMultipleObjects(a, b, c, d) WaitForMultipleObjectsEx(a, b, c, d, FALSE)
7276 #endif
7377 #endif
7478

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t