From: Ivan Maidanski Date: Fri, 2 Mar 2018 08:28:50 +0000 (+0300) Subject: Workaround missing extern 'C' for _DYNAMIC in link.h on some Linux hosts X-Git-Tag: v8.0.0~305 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8d18e5d1d5d45493f519634ce0e9b09d675afef2;p=gc 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. --- diff --git a/dyn_load.c b/dyn_load.c index 110d9b15..77db3651 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