Showing the changes to codec/common/src/WelsThreadLib.cpp (1 of 1 file). Show all
Unified · Split
| @@ -39,7 +39,7 @@ · 38 unmodified lines | |||
| 39 | */ | 39 | */ |
| 40 | 40 | ||
| 41 | 41 | ||
| 42 | #ifdef LINUX | 42 | #ifdef __linux__ |
| 43 | #ifndef _GNU_SOURCE | 43 | #ifndef _GNU_SOURCE |
| 44 | #define _GNU_SOURCE | 44 | #define _GNU_SOURCE |
| 45 | #endif | 45 | #endif |
| @@ -450,7 +450,7 @@ WELS_THREAD_ERROR_CODE WelsQueryLogicalProcessInfo (WelsLogicalProcessInfo* p · 404 unmodified lines | |||
| 450 | #ifdef ANDROID_NDK | 450 | #ifdef ANDROID_NDK |
| 451 | pInfo->ProcessorCount = android_getCpuCount(); | 451 | pInfo->ProcessorCount = android_getCpuCount(); |
| 452 | return WELS_THREAD_ERROR_OK; | 452 | return WELS_THREAD_ERROR_OK; |
| 453 | #elif defined(LINUX) | 453 | #elif defined(__linux__) |
| 454 | 454 | ||
| 455 | cpu_set_t cpuset; | 455 | cpu_set_t cpuset; |
| 456 | 456 | ||
| @@ -472,7 +472,7 @@ WELS_THREAD_ERROR_CODE WelsQueryLogicalProcessInfo (WelsLogicalProcessInfo* p · 15 unmodified lines | |||
| 472 | 472 | ||
| 473 | return WELS_THREAD_ERROR_OK; | 473 | return WELS_THREAD_ERROR_OK; |
| 474 | 474 | ||
| 475 | #endif//LINUX | 475 | #endif//__linux__ |
| 476 | } | 476 | } |
| 477 | 477 | ||
| 478 | #endif | 478 | #endif |