From f4f9c76981e309ef5fdc4771f394669ce755dbc2 Mon Sep 17 00:00:00 2001 From: Rui Guo Date: Fri, 4 Nov 2016 11:33:30 +0800 Subject: get threads work for old msvc before 2015 --- lib/threads.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/threads.c b/lib/threads.c index 46a771d..f08f095 100644 --- a/lib/threads.c +++ b/lib/threads.c @@ -20,7 +20,8 @@ static int thread_new(lua_State *L) luaL_error(L, "threads: out of memory"); memcpy(code_dup, code, len+1); -#ifdef _WIN32 +#ifdef _MSC_VER +#define snprintf _snprintf #define LIBTHREADSMAIN "threadsmain.dll" #else #define LIBTHREADSMAIN "libthreadsmain.so" -- cgit v1.2.3