Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
win: remove pthread-win32 init code
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Zinkovsky authored and bnoordhuis committed Oct 15, 2011
1 parent 107b057 commit 971c3d9
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/node.cc
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,6 @@ typedef int mode_t;

#if defined(__MINGW32__) || defined(_MSC_VER)
# include <platform_win32.h> /* 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__
Expand Down Expand Up @@ -2539,11 +2533,6 @@ void EmitExit(v8::Handle<v8::Object> 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);

Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 971c3d9

Please sign in to comment.