Skip to content

Commit

Permalink
Use ANY_MSWIN in GC_remove_tmp_roots
Browse files Browse the repository at this point in the history
(fix of commit 52961f3)

* mark_rts.c [DYNAMIC_LOADING || ANY_MSWIN || PCR]
(GC_remove_tmp_roots): Check ANY_MSWIN instead of
(MSWIN32||MSWINCE||CYGWIN32).
  • Loading branch information
ivmai committed Jul 10, 2024
1 parent 642a4d1 commit 69f6232
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mark_rts.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down

0 comments on commit 69f6232

Please sign in to comment.