From 971c3d90eb1140dc6a5a0df09f7c375ead28d8de Mon Sep 17 00:00:00 2001 From: Igor Zinkovsky Date: Fri, 14 Oct 2011 17:47:01 -0700 Subject: [PATCH] win: remove pthread-win32 init code --- src/node.cc | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/node.cc b/src/node.cc index 9b3f3078bcd..cd3bef5d40a 100644 --- a/src/node.cc +++ b/src/node.cc @@ -58,12 +58,6 @@ typedef int mode_t; #if defined(__MINGW32__) || defined(_MSC_VER) # include /* winapi_perror() */ -# ifdef PTW32_STATIC_LIB -extern "C" { - BOOL __cdecl pthread_win32_process_attach_np (void); - BOOL __cdecl pthread_win32_process_detach_np (void); -} -# endif #endif #ifdef __POSIX__ @@ -2539,11 +2533,6 @@ void EmitExit(v8::Handle process) { int Start(int argc, char *argv[]) { - -#if (defined(__MINGW32__) || defined(_MSC_VER)) && defined(PTW32_STATIC_LIB) - pthread_win32_process_attach_np(); -#endif - // This needs to run *before* V8::Initialize() argv = Init(argc, argv); @@ -2576,10 +2565,6 @@ int Start(int argc, char *argv[]) { V8::Dispose(); #endif // NDEBUG -#if (defined(__MINGW32__) || defined(_MSC_VER)) && defined(PTW32_STATIC_LIB) - pthread_win32_process_detach_np(); -#endif - return 0; }