From: Magnus Jacobsson Date: Mon, 26 Jul 2021 14:57:20 +0000 (+0200) Subject: gvc: correct storage-class attribute declarations in gvio.h X-Git-Tag: 3.0.0~105^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=067c436d83344774aeeb71d7591833f6415f2934;p=graphviz gvc: correct storage-class attribute declarations in gvio.h Towards https://gitlab.com/graphviz/graphviz/-/issues/2058. --- 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);