diff options
Diffstat (limited to 'src/script')
-rw-r--r-- | src/script/lua_api/l_async_events.h | 10 |
1 files changed, 10 insertions, 0 deletions
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 <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 */ |