From: Erwin Janssen Date: Sat, 1 Apr 2017 07:57:40 +0000 (+0200) Subject: Add `extern "C"` to export in plugin/gdiplus X-Git-Tag: 2.42.0~187^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=378e9a68322f5931ff8f94e5731c805b54c8c280;p=graphviz Add `extern "C"` to export in plugin/gdiplus plugin/gdiplus is a C++ project, so the `extern "C"` must be added in order to export C symbols that can be used by the rest of the code. --- diff --git a/plugin/gdiplus/gvplugin_gdiplus.cpp b/plugin/gdiplus/gvplugin_gdiplus.cpp index d645cf53b..efd319578 100755 --- a/plugin/gdiplus/gvplugin_gdiplus.cpp +++ b/plugin/gdiplus/gvplugin_gdiplus.cpp @@ -89,6 +89,10 @@ static gvplugin_api_t apis[] = { {(api_t)0, 0}, }; +#ifdef __cplusplus +extern "C" { +#endif + #ifdef _WIN32 # define GVPLUGIN_GDIPLUS_API __declspec(dllexport) #else @@ -96,3 +100,7 @@ static gvplugin_api_t apis[] = { #endif GVPLUGIN_GDIPLUS_API gvplugin_library_t gvplugin_gdiplus_LTX_library = { "gdiplus", apis }; + +#ifdef __cplusplus +} +#endif