Skip to content

Commit

Permalink
Do not require explicit GC initialization in gctest on Cygwin
Browse files Browse the repository at this point in the history
* tests/gctest.c [!TEST_EXPLICIT_GC_INIT && CYGWIN32] (GC_OPT_INIT):
Define to no-op.
  • Loading branch information
ivmai committed Oct 16, 2024
1 parent f2eb7f9 commit 8603735
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/gctest.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8603735

Please sign in to comment.