Skip to content
Snippets Groups Projects
Commit 752e11e1 authored by Ilya Zhuravlev's avatar Ilya Zhuravlev
Browse files

Fix MSVC build.

parent 9a927476
No related branches found
No related tags found
No related merge requests found
...@@ -77,7 +77,7 @@ int JThread::Start() ...@@ -77,7 +77,7 @@ int JThread::Start()
runningmutex.Unlock(); runningmutex.Unlock();
return ERR_JTHREAD_ALREADYRUNNING; return ERR_JTHREAD_ALREADYRUNNING;
} }
requeststop = false;e requeststop = false;
runningmutex.Unlock(); runningmutex.Unlock();
continuemutex.Lock(); continuemutex.Lock();
......
...@@ -22,7 +22,17 @@ with this program; if not, write to the Free Software Foundation, Inc., ...@@ -22,7 +22,17 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include <vector> #include <vector>
#include <map> #include <map>
#ifndef _MSC_VER
#include <unistd.h> #include <unistd.h>
#else
#define _WINSOCKAPI_
#include <windows.h>
static unsigned sleep(unsigned seconds) {
Sleep(seconds * 1000);
return 0;
}
#endif
/******************************************************************************/ /******************************************************************************/
/* Includes */ /* Includes */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment