Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Unity-Technologies/bdwgc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2018-03-01 11:35:41 +0300
committerIvan Maidanski <ivmai@mail.ru>2018-03-01 11:35:41 +0300
commitf30a26d5e335be3b84920e2b360b4d09ef83e447 (patch)
tree704bf94d2f4fd50e8d9ab40f93c1c66af9066bb0 /finalize.c
parent5af01ec4152c51e33b84c1a35d02dc518a80b897 (diff)
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.
Diffstat (limited to 'finalize.c')
-rw-r--r--finalize.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/finalize.c b/finalize.c
index 640ee4e7..6f178b9d 100644
--- a/finalize.c
+++ b/finalize.c
@@ -17,6 +17,7 @@
#include "private/gc_pmark.h"
#ifndef GC_NO_FINALIZATION
+# include "javaxfc.h" /* to get GC_finalize_all() as extern "C" */
/* Type of mark procedure used for marking from finalizable object. */
/* This procedure normally does not mark the object, only its */