]> granicus.if.org Git - graphviz/commitdiff
cdt: use GVDLL instead of _WIN32 to control storage-class attributes in cdt.h
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sat, 1 Jan 2022 15:44:04 +0000 (16:44 +0100)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Wed, 5 Jan 2022 06:30:25 +0000 (07:30 +0100)
Towards https://gitlab.com/graphviz/graphviz/-/issues/2173.

lib/cdt/cdt.h

index 034919bcd0722ff4765ced80d8644c0ca4334bfb..13e5837148bf486c2c772f2d2711368a7c7d9200 100644 (file)
@@ -14,7 +14,7 @@ extern "C" {
 #include <stddef.h>    /* size_t */
 #include <string.h>
 
-#ifdef _WIN32
+#ifdef GVDLL
 #ifdef EXPORT_CDT
 #define CDT_API __declspec(dllexport)
 #else