Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/threads-ffi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoumith Chintala <soumith@gmail.com>2016-11-04 06:40:13 +0300
committerGitHub <noreply@github.com>2016-11-04 06:40:13 +0300
commit1eaaf59925c4fff44a794e2ba6b3c734f37d6e77 (patch)
tree14827015428abf290b0c029a811728a14fd954ca
parent7e14ba31d0b1d2e48907d5bf5b2f876e865669ae (diff)
parentf4f9c76981e309ef5fdc4771f394669ce755dbc2 (diff)
Merge pull request #83 from BTNC/win
get threads work for old msvc before 2015
-rw-r--r--lib/threads.c3
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"