Skip to content

Commit

Permalink
Do not include gc_pthread_redirects.h from extra/gc.c unless pthreads
Browse files Browse the repository at this point in the history
(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.
  • Loading branch information
ivmai committed Oct 8, 2024
1 parent 3ba74e8 commit be29d26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extra/gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit be29d26

Please sign in to comment.