Fix MSVC build.
parent
9a927476ca
commit
752e11e114
|
@ -77,7 +77,7 @@ int JThread::Start()
|
|||
runningmutex.Unlock();
|
||||
return ERR_JTHREAD_ALREADYRUNNING;
|
||||
}
|
||||
requeststop = false;e
|
||||
requeststop = false;
|
||||
runningmutex.Unlock();
|
||||
|
||||
continuemutex.Lock();
|
||||
|
|
|
@ -22,7 +22,17 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
#ifndef _MSC_VER
|
||||
#include <unistd.h>
|
||||
#else
|
||||
#define _WINSOCKAPI_
|
||||
#include <windows.h>
|
||||
static unsigned sleep(unsigned seconds) {
|
||||
Sleep(seconds * 1000);
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
/******************************************************************************/
|
||||
/* Includes */
|
||||
|
|
Loading…
Reference in New Issue