]> granicus.if.org Git - graphviz/commitdiff
cgraph: use GVDLL instead of _WIN32 to control storage-class attributes in cghdr.h
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sat, 1 Jan 2022 16:23:53 +0000 (17:23 +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/cghdr.h

index d6005612b6f3787f5e78477abc73d88932a2e455..b2c3cd0baf91135d9ae9b934895f4ca8cfcbed5a 100644 (file)
@@ -12,7 +12,7 @@
 
 #include "config.h"
 
-#ifdef _WIN32
+#ifdef GVDLL
 #ifdef EXPORT_CGHDR
 #define CGHDR_API __declspec(dllexport)
 #else