Index: Source/wtf/ThreadingWin.cpp |
diff --git a/Source/wtf/ThreadingWin.cpp b/Source/wtf/ThreadingWin.cpp |
index 1716a158b6abb704557121c6c10059848df0ef6c..971274cee677b23a024b2b7da37cfdb902bed6c3 100644 |
--- a/Source/wtf/ThreadingWin.cpp |
+++ b/Source/wtf/ThreadingWin.cpp |
@@ -94,6 +94,7 @@ |
#include "MainThread.h" |
#include "ThreadFunctionInvocation.h" |
+#include "ThreadSpecific.h" |
#include <windows.h> |
#include "wtf/CurrentTime.h" |
#include "wtf/HashMap.h" |
@@ -103,10 +104,6 @@ |
#include "wtf/RandomNumberSeed.h" |
#include "wtf/WTFThreadData.h" |
-#if !USE(PTHREADS) && OS(WINDOWS) |
-#include "ThreadSpecific.h" |
-#endif |
- |
#include <errno.h> |
#include <process.h> |
@@ -205,10 +202,8 @@ static unsigned __stdcall wtfThreadEntryPoint(void* param) |
OwnPtr<ThreadFunctionInvocation> invocation = adoptPtr(static_cast<ThreadFunctionInvocation*>(param)); |
invocation->function(invocation->data); |
-#if !USE(PTHREADS) && OS(WINDOWS) |
// Do the TLS cleanup. |
ThreadSpecificThreadExit(); |
-#endif |
return 0; |
} |