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
3939 */
4040
4141
42−#ifdef LINUX
42+#ifdef __linux__
4343 #ifndef _GNU_SOURCE
4444 #define _GNU_SOURCE
4545 #endif
@@ -450,7 +450,7 @@ WELS_THREAD_ERROR_CODE WelsQueryLogicalProcessInfo (WelsLogicalProcessInfo* p · 404 unmodified lines
450450 #ifdef ANDROID_NDK
451451 pInfo->ProcessorCount = android_getCpuCount();
452452 return WELS_THREAD_ERROR_OK;
453−#elif defined(LINUX)
453+#elif defined(__linux__)
454454
455455 cpu_set_t cpuset;
456456
@@ -472,7 +472,7 @@ WELS_THREAD_ERROR_CODE WelsQueryLogicalProcessInfo (WelsLogicalProcessInfo* p · 15 unmodified lines
472472
473473 return WELS_THREAD_ERROR_OK;
474474
475−#endif//LINUX
475+#endif//__linux__
476476 }
477477
478478 #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