ref: 6b9167199f96ce25977aceb0cf8460a4d1d6cee2
parent: 758e89208eb59e08652134586425d790f59d7880
author: Martin Storsjö <martin@martin.st>
date: Mon May 12 08:08:01 EDT 2014
Use the built-in define __linux__ instead of the manually set LINUX
--- a/codec/common/src/WelsThreadLib.cpp
+++ b/codec/common/src/WelsThreadLib.cpp
@@ -39,7 +39,7 @@
*/
-#ifdef LINUX
+#ifdef __linux__
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
@@ -450,7 +450,7 @@
#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 @@
return WELS_THREAD_ERROR_OK;
-#endif//LINUX
+#endif//__linux__
}
#endif