summaryrefslogtreecommitdiff
path: root/win32_threads.c
diff options
context:
space:
mode:
Diffstat (limited to 'win32_threads.c')
-rw-r--r--win32_threads.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/win32_threads.c b/win32_threads.c
index 2d4bfa55..452c22f6 100644
--- a/win32_threads.c
+++ b/win32_threads.c
@@ -822,6 +822,9 @@ GC_API int GC_CALL GC_register_my_thread(const struct GC_stack_base *sb)
}
}
+#ifdef GC_DISABLE_INCREMENTAL
+# define GC_wait_for_gc_completion(wait_for_all) (void)(wait_for_all)
+#else
/* Similar to that in pthread_support.c. */
STATIC void GC_wait_for_gc_completion(GC_bool wait_for_all)
{
@@ -845,6 +848,7 @@ STATIC void GC_wait_for_gc_completion(GC_bool wait_for_all)
&& (wait_for_all || old_gc_no == GC_gc_no));
}
}
+#endif /* !GC_DISABLE_INCREMENTAL */
GC_API int GC_CALL GC_unregister_my_thread(void)
{