diff --git a/examples/jpg_proxy_test/JPCJob.cpp b/examples/jpg_proxy_test/JPCJob.cpp index 61c6d79..382d57b 100644 --- a/examples/jpg_proxy_test/JPCJob.cpp +++ b/examples/jpg_proxy_test/JPCJob.cpp @@ -40,7 +40,10 @@ #include "tinia/model/File.hpp" #include "tinia/utils/ProxyDebugGUI.hpp" - +#ifdef WIN32 +#define NOMINMAX +#include +#endif namespace tinia { namespace example { @@ -143,7 +146,11 @@ bool JPCJob::renderFrame(const std::string &session, const std::string &key, uns m_model->getElementValue("simulatedAdditionalLatency", ms); if (ms>0) { std::cout << "Sleeping for " << ms << " ms." << std::endl; +#ifndef WIN32 usleep( 1000 * ms ); +#else + Sleep( 1000 * ms ); +#endif } }