]> granicus.if.org Git - graphviz/commitdiff
neato_layout: use GVDLL instead _WIN32 to control storage-class attributes
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Mon, 4 Oct 2021 19:24:28 +0000 (21:24 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Tue, 7 Dec 2021 06:35:01 +0000 (07:35 +0100)
Storage-class attributes should only be used for dynamic-link
libraries, but not for statically linked libraries.

Towards https://gitlab.com/graphviz/graphviz/-/issues/2058

plugin/neato_layout/gvplugin_neato_layout.c

index f240542416fff4b2f251a2ae4239203ea4779fb3..13f3aeda1231c3b78f9d4e9d1f6df01a88e96beb 100644 (file)
@@ -8,6 +8,8 @@
  * Contributors: Details at https://graphviz.org
  *************************************************************************/
 
+#include "config.h"
+
 #include <gvc/gvplugin.h>
 
 extern gvplugin_installed_t gvlayout_neato_types[];
@@ -17,7 +19,7 @@ static gvplugin_api_t apis[] = {
     {(api_t)0, 0},
 };
 
-#ifdef _WIN32
+#ifdef GVDLL
 #   define GVPLUGIN_NEATO_LAYOUT_API __declspec(dllexport)
 #else
 #   define GVPLUGIN_NEATO_LAYOUT_API