]> granicus.if.org Git - graphviz/commitdiff
gvc: correct storage-class attribute declarations in gvplugin_loadimage.h
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Mon, 26 Jul 2021 14:55:15 +0000 (16:55 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sun, 26 Dec 2021 15:12:47 +0000 (16:12 +0100)
Towards https://gitlab.com/graphviz/graphviz/-/issues/2058.

lib/gvc/gvplugin_loadimage.h

index 227b9361026c4045847e2f6b752ae3ccd2d26c8c..144c1e80fcc8b5214a2344c7c9102e48458cb4ff 100644 (file)
@@ -19,19 +19,15 @@ extern "C" {
 #endif
 
 #ifdef GVDLL
-#  define GVPLUGIN_LOADIMAGE_API __declspec(dllexport)
-#endif
-
-/*visual studio*/
-#ifdef _WIN32
-#ifndef GVC_EXPORTS
-#undef GVPLUGIN_LOADIMAGE_API
+#ifdef GVC_EXPORTS
+#define GVPLUGIN_LOADIMAGE_API __declspec(dllexport)
+#else
 #define GVPLUGIN_LOADIMAGE_API __declspec(dllimport)
 #endif
 #endif
-/*end visual studio*/
+
 #ifndef GVPLUGIN_LOADIMAGE_API
-#define GVPLUGIN_LOADIMAGE_API extern
+#define GVPLUGIN_LOADIMAGE_API /* nothing */
 #endif
 
 GVPLUGIN_LOADIMAGE_API boolean gvusershape_file_access(usershape_t *us);