]> granicus.if.org Git - gc/commitdiff
Prevent config macros redefinition undefined in gcconfig.h
authorIvan Maidanski <ivmai@mail.ru>
Fri, 16 Nov 2018 21:51:49 +0000 (00:51 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 16 Nov 2018 21:51:49 +0000 (00:51 +0300)
(fix of commit 4f837f7a7)

* include/private/gc_pmark.h [HAVE_CONFIG_H]: Do not include config.h
if GC_PRIVATE_H is defined; add comment.

include/private/gc_pmark.h

index 3bc3410891fb2150e56a23936e05ce57299049e2..c301c4dd44f8ad5a4f09a32db7ae336fdfd848e2 100644 (file)
@@ -22,7 +22,9 @@
 #ifndef GC_PMARK_H
 #define GC_PMARK_H
 
-#ifdef HAVE_CONFIG_H
+#if defined(HAVE_CONFIG_H) && !defined(GC_PRIVATE_H)
+  /* When gc_pmark.h is included from gc_priv.h, some of macros might   */
+  /* be undefined in gcconfig.h, so skip config.h in this case.         */
 # include "config.h"
 #endif