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 1511763..ec0ebc9 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