From: Nehal J Wani Date: Fri, 30 Dec 2022 22:52:09 +0000 (+0000) Subject: Specify __dllspec specification for gvplugin_webp X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=de67d6baf98b07caad94c6d121ddde27067acf5d;p=graphviz Specify __dllspec specification for gvplugin_webp This ensures that the import library is created on Windows --- diff --git a/plugin/webp/gvplugin_webp.c b/plugin/webp/gvplugin_webp.c index 3b3ea115c..91883b84b 100644 --- a/plugin/webp/gvplugin_webp.c +++ b/plugin/webp/gvplugin_webp.c @@ -19,4 +19,10 @@ static gvplugin_api_t apis[] = { {(api_t)0, 0}, }; -gvplugin_library_t gvplugin_webp_LTX_library = { "webp", apis }; +#ifdef GVDLL +#define GVPLUGIN_WEBP_API __declspec(dllexport) +#else +#define GVPLUGIN_WEBP_API +#endif + +GVPLUGIN_WEBP_API gvplugin_library_t gvplugin_webp_LTX_library = { "webp", apis };