Only build the thread code if multithreading is enabled

This allows including the source file in the build even if
multithreading isn't desired.
This commit is contained in:
Martin Storsjö 2014-01-21 12:06:04 +02:00
parent f8b84b642d
commit 249b4e3d1f

View File

@ -42,6 +42,8 @@
#include "WelsThreadLib.h"
#include <stdio.h>
#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