From 249b4e3d1f41252dcc263e8e27650ae1998c784d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Tue, 21 Jan 2014 12:06:04 +0200 Subject: [PATCH] Only build the thread code if multithreading is enabled This allows including the source file in the build even if multithreading isn't desired. --- codec/WelsThreadLib/src/WelsThreadLib.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/codec/WelsThreadLib/src/WelsThreadLib.cpp b/codec/WelsThreadLib/src/WelsThreadLib.cpp index 7f1c46b5..98de1449 100644 --- a/codec/WelsThreadLib/src/WelsThreadLib.cpp +++ b/codec/WelsThreadLib/src/WelsThreadLib.cpp @@ -42,6 +42,8 @@ #include "WelsThreadLib.h" #include +#ifdef MT_ENABLED + #ifdef _WIN32 void WelsSleep (uint32_t dwMilliseconds) { @@ -510,4 +512,5 @@ WELS_THREAD_ERROR_CODE WelsQueryLogicalProcessInfo (WelsLogicalProcessInfo* p #endif +#endif // MT_ENABLED