From 067c436d83344774aeeb71d7591833f6415f2934 Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Mon, 26 Jul 2021 16:57:20 +0200 Subject: [PATCH] gvc: correct storage-class attribute declarations in gvio.h Towards https://gitlab.com/graphviz/graphviz/-/issues/2058. --- lib/gvc/gvio.h | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/lib/gvc/gvio.h b/lib/gvc/gvio.h index eaf6fc65e..078e17d07 100644 --- a/lib/gvc/gvio.h +++ b/lib/gvc/gvio.h @@ -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); -- 2.40.0