]> granicus.if.org Git - graphviz/commitdiff
common: correct storage-class attribute declarations in geomprocs.h
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Wed, 28 Jul 2021 06:00:33 +0000 (08:00 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Wed, 29 Dec 2021 06:19:16 +0000 (07:19 +0100)
Towards https://gitlab.com/graphviz/graphviz/-/issues/2058.

lib/common/geomprocs.h

index 245f488d2b0d770726af24932ab3965272513ffb..c89ff340da338b3c037788611fcc5244d34d3b97 100644 (file)
@@ -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