2006-07-30 Hans Boehm <Hans.Boehm@hp.com>
authorhboehm <hboehm>
Sun, 30 Jul 2006 18:18:43 +0000 (18:18 +0000)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 26 Jul 2011 17:06:38 +0000 (21:06 +0400)
* tests/test.c: Call GC_use_DllMain in the win32/DLL configuration.

tests/test.c

index 17bcea1..d8e9990 100644 (file)
@@ -1481,6 +1481,10 @@ int APIENTRY WinMain(HINSTANCE instance, HINSTANCE prev, LPSTR cmd, int n)
     HANDLE win_thr_h;
 # endif
   DWORD thread_id;
+
+# ifdef GC_DLL
+    GC_use_DllMain();  /* Test with implicit thread registration if possible. */
+# endif
   GC_INIT();
 # ifndef NO_INCREMENTAL
     GC_enable_incremental();