]> granicus.if.org Git - gc/commit
Fix linkage of javaxfc.h symbols for the case of compilation as C++ code
authorIvan Maidanski <ivmai@mail.ru>
Thu, 1 Mar 2018 08:35:41 +0000 (11:35 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 1 Mar 2018 08:35:41 +0000 (11:35 +0300)
commitf30a26d5e335be3b84920e2b360b4d09ef83e447
tree704bf94d2f4fd50e8d9ab40f93c1c66af9066bb0
parent5af01ec4152c51e33b84c1a35d02dc518a80b897
Fix linkage of javaxfc.h symbols for the case of compilation as C++ code

Issue #206 (bdwgc).

The functions should be declared (as extern "C") before the definition.

* finalize.c [!GC_NO_FINALIZATION]: Include javaxfc.h.
* pthread_stop_world.c [GC_ENABLE_SUSPEND_THREAD]: Likewise.
finalize.c
pthread_stop_world.c