Use the built-in define __linux__ instead of the manually set LINUX
This commit is contained in:
parent
758e89208e
commit
6b9167199f
@ -39,7 +39,7 @@
|
||||
*/
|
||||
|
||||
|
||||
#ifdef LINUX
|
||||
#ifdef __linux__
|
||||
#ifndef _GNU_SOURCE
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
@ -450,7 +450,7 @@ WELS_THREAD_ERROR_CODE WelsQueryLogicalProcessInfo (WelsLogicalProcessInfo* p
|
||||
#ifdef ANDROID_NDK
|
||||
pInfo->ProcessorCount = android_getCpuCount();
|
||||
return WELS_THREAD_ERROR_OK;
|
||||
#elif defined(LINUX)
|
||||
#elif defined(__linux__)
|
||||
|
||||
cpu_set_t cpuset;
|
||||
|
||||
@ -472,7 +472,7 @@ WELS_THREAD_ERROR_CODE WelsQueryLogicalProcessInfo (WelsLogicalProcessInfo* p
|
||||
|
||||
return WELS_THREAD_ERROR_OK;
|
||||
|
||||
#endif//LINUX
|
||||
#endif//__linux__
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user