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:
Diffstat (limited to 'lib/thread-main.c')
-rw-r--r--lib/thread-main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/thread-main.c b/lib/thread-main.c
index 344e679..5008a07 100644
--- a/lib/thread-main.c
+++ b/lib/thread-main.c
@@ -34,7 +34,11 @@ static int runthread(void *code_)
return 0;
}
+#if defined(_WIN32)
+__declspec(dllexport) void* THThread_main(void *arg)
+#else
void* THThread_main(void *arg)
+#endif
{
THThreadState* state = arg;
state->status = runthread(state->data);