From 4a8c03fd4a359fee425b56e245a4101980f2566d Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Mon, 26 Jul 2021 16:53:22 +0200 Subject: [PATCH] common: correct storage-class attribute declarations in pointset.h Towards https://gitlab.com/graphviz/graphviz/-/issues/2058. --- lib/common/pointset.h | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) 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); -- 2.40.0