From: Ilya Zhuravlev Date: Sat, 30 Nov 2013 17:00:18 +0000 (+0400) Subject: Fix MSVC build. X-Git-Tag: 0.4.9~73 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=752e11e11411d72868a406d35538adc5d1126655;p=oweals%2Fminetest.git Fix MSVC build. --- diff --git a/src/jthread/win32/jthread.cpp b/src/jthread/win32/jthread.cpp index e56c16271..fc1464064 100644 --- a/src/jthread/win32/jthread.cpp +++ b/src/jthread/win32/jthread.cpp @@ -77,7 +77,7 @@ int JThread::Start() runningmutex.Unlock(); return ERR_JTHREAD_ALREADYRUNNING; } - requeststop = false;e + requeststop = false; runningmutex.Unlock(); continuemutex.Lock(); diff --git a/src/script/lua_api/l_async_events.h b/src/script/lua_api/l_async_events.h index 079a08009..3364bac6e 100644 --- a/src/script/lua_api/l_async_events.h +++ b/src/script/lua_api/l_async_events.h @@ -22,7 +22,17 @@ with this program; if not, write to the Free Software Foundation, Inc., #include #include + +#ifndef _MSC_VER #include +#else +#define _WINSOCKAPI_ +#include +static unsigned sleep(unsigned seconds) { + Sleep(seconds * 1000); + return 0; +} +#endif /******************************************************************************/ /* Includes */