From 69f623247ba5731a9bf128d9fa5876e549ad9add Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Wed, 10 Jul 2024 08:38:55 +0300 Subject: [PATCH] Use ANY_MSWIN in GC_remove_tmp_roots (fix of commit 52961f3fd) * mark_rts.c [DYNAMIC_LOADING || ANY_MSWIN || PCR] (GC_remove_tmp_roots): Check ANY_MSWIN instead of (MSWIN32||MSWINCE||CYGWIN32). --- mark_rts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mark_rts.c b/mark_rts.c index e26ccc5ac..a82c76937 100644 --- a/mark_rts.c +++ b/mark_rts.c @@ -323,7 +323,7 @@ STATIC void GC_remove_root_at_pos(size_t i) STATIC void GC_remove_tmp_roots(void) { size_t i; -# if !defined(MSWIN32) && !defined(MSWINCE) && !defined(CYGWIN32) +# ifndef ANY_MSWIN size_t old_n_roots = n_root_sets; # endif @@ -335,7 +335,7 @@ STATIC void GC_remove_root_at_pos(size_t i) i++; } } -# if !defined(MSWIN32) && !defined(MSWINCE) && !defined(CYGWIN32) +# ifndef ANY_MSWIN if (n_root_sets < old_n_roots) GC_rebuild_root_index(); # endif