Fix GC_free_bytes[] linkage for the case of compilation as C++ code
authorIvan Maidanski <ivmai@mail.ru>
Tue, 27 Feb 2018 21:46:23 +0000 (00:46 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 27 Feb 2018 21:46:23 +0000 (00:46 +0300)
Issue #206 (bdwgc).

* include/private/gc_priv.h [GC_GCJ_SUPPORT] (GC_free_bytes): Declare;
update comment.

include/private/gc_priv.h

index f6a43e2..fcd7309 100644 (file)
@@ -1583,7 +1583,7 @@ GC_EXTERN word GC_black_list_spacing;
 
 #ifdef GC_GCJ_SUPPORT
   extern struct hblk * GC_hblkfreelist[];
-                                        /* Remains visible to GNU GCJ. */
+  extern word GC_free_bytes[];  /* Both remain visible to GNU GCJ.      */
 #endif
 
 #ifdef GC_DISABLE_INCREMENTAL