diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2022-06-16 09:28:06 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2022-06-16 09:28:06 +0300 |
commit | 3c5959ad5f064b6def3b2a1a3a4363a9d6934f1d (patch) | |
tree | 4856606e20f75c44f2cc10f8c49ca846b0dfdb04 | |
parent | 21b1f094f2b96a03fd0a89998072a73116210c59 (diff) | |
download | bdwgc-3c5959ad5f064b6def3b2a1a3a4363a9d6934f1d.tar.gz |
Fix 'implicit declaration of GC_start_mark_threads' error in middle.c
(fix of commit d95745914)
* tests/middle.c [!GC_THREADS] (GC_THREADS): Define (before include
gc.h).
-rw-r--r-- | tests/middle.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/middle.c b/tests/middle.c index c9f24c4e..9e9ed2e1 100644 --- a/tests/middle.c +++ b/tests/middle.c @@ -2,6 +2,11 @@ * Test at the boundary between small and large objects. * Inspired by a test case from Zoltan Varga. */ + +#ifndef GC_THREADS +# define GC_THREADS /* for GC_start_mark_threads */ +#endif + #include "gc.h" #include <stdio.h> |