Skip to content

Commit

Permalink
Fix GC_free_bytes[] linkage for the case of compilation as C++ code
Browse files Browse the repository at this point in the history
Issue #206 (bdwgc).

* include/private/gc_priv.h [GC_GCJ_SUPPORT] (GC_free_bytes): Declare;
update comment.
  • Loading branch information
ivmai committed Feb 27, 2018
1 parent 69fc6cf commit d450f33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/private/gc_priv.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d450f33

Please sign in to comment.