History

Fix the build for Windows Phone and Windows Store

Move function redirects to WelsThreadLib.h where they are available for wels_decoder_thread.cpp, redirect CreateSemaphore to CreateSemaphoreEx when necessary.

Martin Storsjö committed 7 years ago

Commit 8a0074b1 parent a5839932 files · +13 −12Browse files

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

Unified · Split

codec/common/src/WelsThreadLib.cpp+0−12
@@ -71,18 +71,6 @@ · 70 unmodified lines
7171
7272 #if defined(_WIN32) || defined(__CYGWIN__)
7373
74−#ifdef WINAPI_FAMILY
75−#if !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
76−#define WP80
77−
78−#define InitializeCriticalSection(x) InitializeCriticalSectionEx(x, 0, 0)
79−#define GetSystemInfo(x) GetNativeSystemInfo(x)
80−#define CreateEvent(attr, reset, init, name) CreateEventEx(attr, name, ((reset) ? CREATE_EVENT_MANUAL_RESET : 0) | ((init) ? CREATE_EVENT_INITIAL_SET : 0), EVENT_ALL_ACCESS)
81−#define WaitForSingleObject(a, b) WaitForSingleObjectEx(a, b, FALSE)
82−#define WaitForMultipleObjects(a, b, c, d) WaitForMultipleObjectsEx(a, b, c, d, FALSE)
83−#endif
84−#endif
85−
8674 WELS_THREAD_ERROR_CODE WelsMutexInit (WELS_MUTEX* mutex) {
8775 InitializeCriticalSection (mutex);
8876

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