From: Magnus Jacobsson Date: Mon, 26 Jul 2021 14:53:22 +0000 (+0200) Subject: common: correct storage-class attribute declarations in pointset.h X-Git-Tag: 3.0.0~108^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4a8c03fd4a359fee425b56e245a4101980f2566d;p=graphviz common: correct storage-class attribute declarations in pointset.h Towards https://gitlab.com/graphviz/graphviz/-/issues/2058. --- diff --git a/lib/common/pointset.h b/lib/common/pointset.h index f31412773..db601454a 100644 --- a/lib/common/pointset.h +++ b/lib/common/pointset.h @@ -19,22 +19,17 @@ extern "C" { typedef Dict_t PointSet; typedef Dict_t PointMap; + #ifdef GVDLL +#ifdef GVC_EXPORTS #define POINTSET_API __declspec(dllexport) #else -#define POINTSET_API -#endif - -/*visual studio*/ -#ifdef _WIN32 -#ifndef GVC_EXPORTS -#undef POINTSET_API #define POINTSET_API __declspec(dllimport) #endif #endif -/*end visual studio*/ + #ifndef POINTSET_API -#define POINTSET_API extern +#define POINTSET_API /* nothing */ #endif POINTSET_API PointSet *newPS(void);