Fix GC initialization in de_win for Cygwin
authorIvan Maidanski <ivmai@mail.ru>
Fri, 12 Feb 2016 09:04:16 +0000 (12:04 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 12 Feb 2016 09:04:16 +0000 (12:04 +0300)
(make GC initialization portable)

* cord/tests/de_win.c (WinMain): Call GC_INIT() unconditionally.

cord/tests/de_win.c

index ecbd604..23c1e2a 100644 (file)
@@ -46,10 +46,7 @@ int APIENTRY WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
    WNDCLASS    wndclass;
    HANDLE      hAccel;
 
-#  ifdef THREAD_LOCAL_ALLOC
-     GC_INIT();  /* Required if GC is built with THREAD_LOCAL_ALLOC     */
-                 /* Always safe, but this is used as a GC test.         */
-#  endif
+   GC_INIT();
 
    if (!hPrevInstance)
    {