]> granicus.if.org Git - gc/commitdiff
Fix 'undefined reference to GC_wait_for_reclaim' linker error
authorIvan Maidanski <ivmai@mail.ru>
Tue, 19 Sep 2017 07:38:39 +0000 (10:38 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 19 Sep 2017 07:38:39 +0000 (10:38 +0300)
(fix commit f4d690e)

Issue #179 (bdwgc).

* include/private/gc_pmark.h [HAVE_CONFIG_H]: Do not include config.h
if already included from gc_priv.h (to avoid PARALLEL_MARK macro
redefinition in config.h after it was undefined in gcconfig.h).

include/private/gc_pmark.h

index 1511763f209ac263669df8903cc9332177857913..ec0ebc9fcd37192da93ec24f82caf33cb561b52e 100644 (file)
@@ -22,7 +22,7 @@
 #ifndef GC_PMARK_H
 #define GC_PMARK_H
 
-#ifdef HAVE_CONFIG_H
+#if defined(HAVE_CONFIG_H) && !defined(GC_PRIVATE_H)
 # include "config.h"
 #endif