Showing the changes to codec/common/src/WelsThreadLib.cpp (1 of 3 files). Show all
Unified · Split
| @@ -44,7 +44,7 @@ · 43 unmodified lines | |||
| 44 | #define _GNU_SOURCE | 44 | #define _GNU_SOURCE |
| 45 | #endif | 45 | #endif |
| 46 | #include <sched.h> | 46 | #include <sched.h> |
| 47 | #elif !defined(_WIN32) | 47 | #elif !defined(_WIN32) && !defined(__CYGWIN__) |
| 48 | #include <sys/types.h> | 48 | #include <sys/types.h> |
| 49 | #include <sys/sysctl.h> | 49 | #include <sys/sysctl.h> |
| 50 | #include <sys/param.h> | 50 | #include <sys/param.h> |
| @@ -67,7 +67,7 @@ · 16 unmodified lines | |||
| 67 | #include <stdlib.h> | 67 | #include <stdlib.h> |
| 68 | 68 | ||
| 69 | 69 | ||
| 70 | #ifdef _WIN32 | 70 | #if defined(_WIN32) || defined(__CYGWIN__) |
| 71 | 71 | ||
| 72 | #ifdef WINAPI_FAMILY | 72 | #ifdef WINAPI_FAMILY |
| 73 | #if !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) | 73 | #if !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) |
| @@ -129,7 +129,7 @@ WELS_THREAD_ERROR_CODE WelsMutexDestroy (WELS_MUTEX* mutex) { · 55 unmodified lines | |||
| 129 | 129 | ||
| 130 | #endif /* !_WIN32 */ | 130 | #endif /* !_WIN32 */ |
| 131 | 131 | ||
| 132 | #ifdef _WIN32 | 132 | #if defined(_WIN32) || defined(__CYGWIN__) |
| 133 | 133 | ||
| 134 | WELS_THREAD_ERROR_CODE WelsEventOpen (WELS_EVENT* event, const char* event_name) { | 134 | WELS_THREAD_ERROR_CODE WelsEventOpen (WELS_EVENT* event, const char* event_name) { |
| 135 | WELS_EVENT h = CreateEvent (NULL, FALSE, FALSE, NULL); | 135 | WELS_EVENT h = CreateEvent (NULL, FALSE, FALSE, NULL); |