]> granicus.if.org Git - graphviz/commitdiff
gvc++: use GVDLL instead of _WIN32 to control storage-class attributes in GVLayout.h
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Mon, 10 Jan 2022 15:35:24 +0000 (16:35 +0100)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Tue, 11 Jan 2022 06:19:33 +0000 (07:19 +0100)
Towards https://gitlab.com/graphviz/graphviz/-/issues/2173.

lib/gvc++/GVLayout.h

index b961824da182bd8ddb12a4a62ebbbcb1f20f8333..9de45440b4c148dca7eb35328c72add980418522 100644 (file)
@@ -6,7 +6,7 @@
 #include "GVRenderData.h"
 #include <cgraph++/AGraph.h>
 
-#ifdef _WIN32
+#ifdef GVDLL
 #if gvc___EXPORTS // CMake's substitution of gvc++_EXPORTS
 #define GVLAYOUT_API __declspec(dllexport)
 #else