]> granicus.if.org Git - graphviz/commitdiff
cgraph: use GVDLL instead of _WIN32 to control storage-class attributes in cgraph.h
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sat, 1 Jan 2022 16:30:02 +0000 (17:30 +0100)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sun, 9 Jan 2022 08:44:21 +0000 (09:44 +0100)
Towards https://gitlab.com/graphviz/graphviz/-/issues/2173.

lib/cgraph/cgraph.h

index 7de0cc137bdd2ccd0d5a2920ce1e385cc8f174ec..87936f74a36d495091176856356d78d1f39f1d35 100644 (file)
@@ -17,7 +17,7 @@
 extern "C" {
 #endif
 
-#ifdef _WIN32
+#ifdef GVDLL
 #ifdef EXPORT_CGRAPH
 #define CGRAPH_API __declspec(dllexport)
 #else