From 86037357c40e54ef09f4a0d3bcc9e89118acf7a3 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Wed, 16 Oct 2024 20:24:53 +0300 Subject: [PATCH] Do not require explicit GC initialization in gctest on Cygwin * tests/gctest.c [!TEST_EXPLICIT_GC_INIT && CYGWIN32] (GC_OPT_INIT): Define to no-op. --- tests/gctest.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/gctest.c b/tests/gctest.c index 8f6ad2511..e6d37e663 100644 --- a/tests/gctest.c +++ b/tests/gctest.c @@ -171,8 +171,7 @@ static CRITICAL_SECTION incr_cs; /* Call GC_INIT only on platforms on which we think we really need it, */ /* so that we can test automatic initialization on the rest. */ -#if defined(TEST_EXPLICIT_GC_INIT) || defined(AIX) || defined(CYGWIN32) \ - || defined(HOST_ANDROID) \ +#if defined(TEST_EXPLICIT_GC_INIT) || defined(AIX) || defined(HOST_ANDROID) \ || (defined(MSWINCE) && !defined(GC_WINMAIN_REDIRECT)) # define GC_OPT_INIT GC_INIT() #else