summaryrefslogtreecommitdiff
path: root/ptw32_throw.c
diff options
context:
space:
mode:
authorrpj <rpj>2005-05-15 15:28:24 +0000
committerrpj <rpj>2005-05-15 15:28:24 +0000
commit46ae637c4ef03a921d4a06baf99219c6149a7d20 (patch)
treeca25c87f4285954f598d6f9b11b906d74b24750d /ptw32_throw.c
parentd4a22be21479c3b52e0ba2d3cfb150a98c426422 (diff)
''
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