]> granicus.if.org Git - graphviz/commitdiff
Specify __dllspec specification for gvplugin_webp
authorNehal J Wani <nehaljw.kkd1@gmail.com>
Fri, 30 Dec 2022 22:52:09 +0000 (22:52 +0000)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 7 Jan 2023 21:54:09 +0000 (13:54 -0800)
This ensures that the import library is created on Windows

plugin/webp/gvplugin_webp.c

index 3b3ea115c40eb406257bc7ab95f002d8fc7ceabe..91883b84b1baccdff81ade76245f3d3816fa5679 100644 (file)
@@ -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 };