]> granicus.if.org Git - gc/commitdiff
Workaround missing extern 'C' for _DYNAMIC in link.h on some Linux hosts
authorIvan Maidanski <ivmai@mail.ru>
Fri, 2 Mar 2018 08:28:50 +0000 (11:28 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 2 Mar 2018 08:28:50 +0000 (11:28 +0300)
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

index 110d9b15fc808febbdd6fdf7540c3851a7d4cceb..77db36519d3991273f4c795d02090e4acd19e0c0 100644 (file)
@@ -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 <link.h>
+    EXTERN_C_END
 # endif
 #endif