diff options
author | Soumith Chintala <soumith@gmail.com> | 2016-11-04 06:40:13 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-04 06:40:13 +0300 |
commit | 1eaaf59925c4fff44a794e2ba6b3c734f37d6e77 (patch) | |
tree | 14827015428abf290b0c029a811728a14fd954ca | |
parent | 7e14ba31d0b1d2e48907d5bf5b2f876e865669ae (diff) | |
parent | f4f9c76981e309ef5fdc4771f394669ce755dbc2 (diff) |
Merge pull request #83 from BTNC/win
get threads work for old msvc before 2015
-rw-r--r-- | lib/threads.c | 3 |
1 files changed, 2 insertions, 1 deletions
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" |