shithub: openh264

Download patch

ref: 249b4e3d1f41252dcc263e8e27650ae1998c784d
parent: f8b84b642d453e77699ba452d305424fc066d341
author: Martin Storsjö <martin@martin.st>
date: Tue Jan 21 07:06:04 EST 2014

Only build the thread code if multithreading is enabled

This allows including the source file in the build even if
multithreading isn't desired.

--- a/codec/WelsThreadLib/src/WelsThreadLib.cpp
+++ b/codec/WelsThreadLib/src/WelsThreadLib.cpp
@@ -42,6 +42,8 @@
 #include "WelsThreadLib.h"
 #include <stdio.h>
 
+#ifdef MT_ENABLED
+
 #ifdef  _WIN32
 
 void WelsSleep (uint32_t dwMilliseconds) {
@@ -510,4 +512,5 @@
 #endif
 
 
+#endif // MT_ENABLED