summaryrefslogtreecommitdiff
path: root/ptw32_throw.c
diff options
context:
space:
mode:
Diffstat (limited to 'ptw32_throw.c')
-rw-r--r--ptw32_throw.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ptw32_throw.c b/ptw32_throw.c
index 57814e9..493f4e4 100644
--- a/ptw32_throw.c
+++ b/ptw32_throw.c
@@ -85,8 +85,12 @@ ptw32_throw (DWORD exception)
break;
}
+#if defined(PTW32_STATIC_LIB)
+
pthread_win32_thread_detach_np ();
+#endif
+
#if ! defined (__MINGW32__) || defined (__MSVCRT__) || defined (__DMC__)
_endthreadex (exitCode);
#else