]> granicus.if.org Git - graphviz/commitdiff
plugin/core: use GVDLL instead of _WIN32 to enable dllexport storage-class attribute...
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sun, 2 Jan 2022 18:13:30 +0000 (19:13 +0100)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Mon, 10 Jan 2022 18:31:16 +0000 (19:31 +0100)
Towards https://gitlab.com/graphviz/graphviz/-/issues/2173.

plugin/core/gvplugin_core.c

index d79c489799bc373dbda4c7d85e6087f6435f2c51..33f53f0837854875a0b98d904679d000c5c78502 100644 (file)
@@ -69,7 +69,7 @@ static gvplugin_api_t apis[] = {
     {(api_t)0, 0},
 };
 
-#ifdef _WIN32
+#ifdef GVDLL
 #define GVPLUGIN_CORE_API __declspec(dllexport)
 #else
 #define GVPLUGIN_CORE_API