From: Magnus Jacobsson Date: Wed, 28 Jul 2021 06:00:33 +0000 (+0200) Subject: common: correct storage-class attribute declarations in geomprocs.h X-Git-Tag: 3.0.0~98^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=67fd974c4731f4e0a5af025f1b3e0febf66ebe83;p=graphviz common: correct storage-class attribute declarations in geomprocs.h Towards https://gitlab.com/graphviz/graphviz/-/issues/2058. --- diff --git a/lib/common/geomprocs.h b/lib/common/geomprocs.h index 245f488d2..c89ff340d 100644 --- a/lib/common/geomprocs.h +++ b/lib/common/geomprocs.h @@ -20,15 +20,14 @@ extern "C" { #include "geom.h" -#ifdef _WIN32 #ifdef GVDLL +#ifdef GVC_EXPORTS #define GEOMPROCS_API __declspec(dllexport) #else -#ifndef GVC_EXPORTS #define GEOMPROCS_API __declspec(dllimport) #endif #endif -#endif + #ifndef GEOMPROCS_API #define GEOMPROCS_API extern #endif