From 87399248a60f53c62420b0822c60d58cbf169cf3 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Thu, 14 Apr 2022 17:28:00 -0700 Subject: [PATCH] gvpack: mark 'gvplugin_neato_layout_LTX_library' as having C linkage gvpack.c is currently compiled as C, so this symbol already has C linkage by default. However an upcoming commit converts it to C++, which then results in link failures due to this defaulting to C++ linkage. To pre-empt that, we note its linkage explicitly for now. These guards will be removed in a future commit. Gitlab: #2154 --- cmd/tools/gvpack.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cmd/tools/gvpack.c b/cmd/tools/gvpack.c index 0fad73b36..7caf6d75e 100644 --- a/cmd/tools/gvpack.c +++ b/cmd/tools/gvpack.c @@ -29,11 +29,19 @@ #include #include +#ifdef __cplusplus +extern "C" { +#endif + #ifdef GVDLL __declspec(dllimport) #endif extern gvplugin_library_t gvplugin_neato_layout_LTX_library; +#ifdef __cplusplus +} +#endif + lt_symlist_t lt_preloaded_symbols[] = { #ifdef GVDLL { "gvplugin_neato_layout_LTX_library", 0 }, -- 2.40.0