]> granicus.if.org Git - graphviz/commitdiff
common: correct storage-class attribute declarations in pointset.h
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Mon, 26 Jul 2021 14:53:22 +0000 (16:53 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sat, 25 Dec 2021 23:12:49 +0000 (00:12 +0100)
Towards https://gitlab.com/graphviz/graphviz/-/issues/2058.

lib/common/pointset.h

index f31412773a654d44597b6b24132e6bffe2404e0f..db601454af9a7a0d2543518b27cee2ef43f75d7e 100644 (file)
@@ -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);