History

Use the built-in define __linux__ instead of the manually set LINUX

Martin Storsjö committed 12 years ago

Commit 6b916711 parent 758e8921 file · +3 −3Browse files

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

Unified · Split

codec/common/src/WelsThreadLib.cpp+3−3
@@ -39,7 +39,7 @@ · 38 unmodified lines
39 */39 */
40 40
41 41
42#ifdef LINUX42#ifdef __linux__
43#ifndef _GNU_SOURCE43#ifndef _GNU_SOURCE
44#define _GNU_SOURCE44#define _GNU_SOURCE
45#endif45#endif
@@ -450,7 +450,7 @@ WELS_THREAD_ERROR_CODE WelsQueryLogicalProcessInfo (WelsLogicalProcessInfo* p · 404 unmodified lines
450#ifdef ANDROID_NDK450#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//LINUX475#endif//__linux__
476}476}
477 477
478#endif478#endif

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