diff options
Diffstat (limited to 'lib/thread-main.c')
-rw-r--r-- | lib/thread-main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/thread-main.c b/lib/thread-main.c index 344e679..ee54748 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* _cdecl THThread_main(void *arg) +#else void* THThread_main(void *arg) +#endif { THThreadState* state = arg; state->status = runthread(state->data); |