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

lib/gvc/gvio.h

index eaf6fc65e841987c0b7a30e04391f7ad25e74978..078e17d072f1b9697a26bdbab6faec9c2e6038f9 100644 (file)
@@ -17,21 +17,15 @@ extern "C" {
 #endif
 
 #ifdef GVDLL
+#ifdef GVC_EXPORTS
 #define GVIO_API __declspec(dllexport)
 #else
-#define GVIO_API
-#endif
-
-/*visual studio*/
-#ifdef _WIN32
-#ifndef GVC_EXPORTS
-#undef GVIO_API
 #define GVIO_API __declspec(dllimport)
 #endif
 #endif
-/*end visual studio*/
+
 #ifndef GVIO_API
-#define GVIO_API extern
+#define GVIO_API /* nothing */
 #endif
 
     GVIO_API size_t gvwrite (GVJ_t * job, const char *s, size_t len);