]> granicus.if.org Git - gc/commitdiff
Fix 'redefinition of struct GC_ms_entry' compilation error in gc_priv.h
authorIvan Maidanski <ivmai@mail.ru>
Tue, 25 Jun 2019 21:03:41 +0000 (00:03 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 25 Jun 2019 21:03:41 +0000 (00:03 +0300)
(fix of commit 38962c655)

* include/gc_mark.h [NOT_GCBUILD] (GC_ms_entry): Declare (instead of
an opaque struct definition).

include/gc_mark.h

index ecc6c8a7da0b93dc98191e16c11c764edf9e9a8a..acc3f083a5e19d43c6978490a664a1a931ae49da 100644 (file)
@@ -57,7 +57,7 @@
 /* case correctly somehow.                                              */
 #define GC_PROC_BYTES 100
 
-#ifdef GC_BUILD
+#if defined(GC_BUILD) || defined(NOT_GCBUILD)
   struct GC_ms_entry;
 #else
   struct GC_ms_entry { void *opaque; };