]> granicus.if.org Git - graphviz/commitdiff
xdot: use GVDLL instead of _WIN32 to control storage-class attributes in xdot.h
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sun, 2 Jan 2022 18:01:59 +0000 (19:01 +0100)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Mon, 10 Jan 2022 14:09:12 +0000 (15:09 +0100)
Towards https://gitlab.com/graphviz/graphviz/-/issues/2173.

lib/xdot/xdot.h

index e66adf97adeda7e6bf98b6495732cb689f69cee4..cc67f9a224f7a4bbdf2df296d2667467e92588b5 100644 (file)
@@ -16,7 +16,7 @@
 extern "C" {
 #endif
 
-#ifdef _WIN32
+#ifdef GVDLL
 #ifdef EXPORT_XDOT
 #define XDOT_API __declspec(dllexport)
 #else