From 0fa9b0a1b9337be7550179c9a41523bd1df06e8d Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Fri, 12 Feb 2016 12:04:16 +0300 Subject: [PATCH] Fix GC initialization in de_win for Cygwin (make GC initialization portable) * cord/tests/de_win.c (WinMain): Call GC_INIT() unconditionally. --- cord/tests/de_win.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cord/tests/de_win.c b/cord/tests/de_win.c index ecbd6044..23c1e2a1 100644 --- a/cord/tests/de_win.c +++ b/cord/tests/de_win.c @@ -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) { -- 2.40.0