Skip to content

Commit

Permalink
Only call GC_DllMain for embedded gc
Browse files Browse the repository at this point in the history
  • Loading branch information
hiberis authored and vargaz committed Feb 20, 2011
1 parent 877140a commit 3ba9a5b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mono/metadata/boehm-gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1189,7 +1189,11 @@ mono_gc_pthread_detach (pthread_t thread)
#ifdef HOST_WIN32
BOOL APIENTRY mono_gc_dllmain (HMODULE module_handle, DWORD reason, LPVOID reserved)
{
#ifdef USE_INCLUDED_LIBGC
return GC_DllMain (module_handle, reason, reserved);
#else
return TRUE;
#endif
}
#endif

Expand Down

0 comments on commit 3ba9a5b

Please sign in to comment.