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:
parent
f8b84b642d
commit
249b4e3d1f
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user