From 8d18e5d1d5d45493f519634ce0e9b09d675afef2 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Fri, 2 Mar 2018 11:28:50 +0300 Subject: [PATCH] Workaround missing extern 'C' for _DYNAMIC in link.h on some Linux hosts Issue #206 (bdwgc). * dyn_load.c [DYNAMIC_LOADING && (SCO_ELF || DGUX || HURD || __ELF__ && (LINUX || FREEBSD || NACL || NETBSD || OPENBSD)) && !HOST_ANDROID]: Put EXTERN_C_BEGIN/END around include link.h; add comment. --- dyn_load.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dyn_load.c b/dyn_load.c index 110d9b1..77db365 100644 --- a/dyn_load.c +++ b/dyn_load.c @@ -131,7 +131,10 @@ STATIC GC_has_static_roots_func GC_has_static_roots = 0; }; # endif # else + EXTERN_C_BEGIN /* Workaround missing extern "C" around _DYNAMIC */ + /* symbol in link.h of some Linux hosts. */ # include + EXTERN_C_END # endif #endif -- 2.7.4