Skip to content

Commit

Permalink
Fix MSVC build.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya Zhuravlev committed Nov 30, 2013
1 parent 9a92747 commit 752e11e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/jthread/win32/jthread.cpp
Expand Up @@ -77,7 +77,7 @@ int JThread::Start()
runningmutex.Unlock();
return ERR_JTHREAD_ALREADYRUNNING;
}
requeststop = false;e
requeststop = false;
runningmutex.Unlock();

continuemutex.Lock();
Expand Down
10 changes: 10 additions & 0 deletions src/script/lua_api/l_async_events.h
Expand Up @@ -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 */
Expand Down

0 comments on commit 752e11e

Please sign in to comment.