From be29d26fe21a2cc3ae9d8d1f50214d79ec89d9b5 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Tue, 8 Oct 2024 08:55:55 +0300 Subject: [PATCH] Do not include gc_pthread_redirects.h from extra/gc.c unless pthreads (refactoring) * extra/gc.c [GC_NO_THREAD_REDIRECTS] (GC_PTHREAD_REDIRECTS_ONLY): Do not define unless GC_PTHREADS. * extra/gc.c [GC_NO_THREAD_REDIRECTS]: Do not include gc_pthread_redirects.h unless GC_PTHREADS. --- extra/gc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extra/gc.c b/extra/gc.c index 469741f59..83578fb64 100644 --- a/extra/gc.c +++ b/extra/gc.c @@ -84,7 +84,7 @@ /* pthread_stop_world.c, pthread_support.c or win32_threads.c). */ /* This is only useful if directly included from application */ /* (instead of linking gc). */ -#ifndef GC_NO_THREAD_REDIRECTS +#if !defined(GC_NO_THREAD_REDIRECTS) && defined(GC_PTHREADS) # define GC_PTHREAD_REDIRECTS_ONLY # include "gc/gc_pthread_redirects.h" #endif