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.
#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 */
# ifdef GC_ENABLE_SUSPEND_THREAD
# include <sys/time.h>
+# include "javaxfc.h" /* to get the prototypes as extern "C" */
STATIC void GC_brief_async_signal_safe_sleep(void)
{