]> granicus.if.org Git - gc/commitdiff
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 f6a43e2c588e5c9bde1107080c366c36a1e07b08..fcd73097c2d5baae50641e31a63a91166067ee97 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