Fixes these errors when building statically with MinGW:
C:/tools/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: gvpack_static-gvpack.o: in function `main':
C:\Users\magja\graphviz\cmd\tools/gvpack.c:857: undefined reference to `__imp_gvplugin_neato_layout_LTX_library'
collect2.exe: error: ld returned 1 exit status
C:/tools/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: gvpack-gvpack.o: in function `main':
C:\Users\magja\graphviz\cmd\tools/gvpack.c:857: undefined reference to `__imp_gvplugin_neato_layout_LTX_library'
Fixes https://gitlab.com/graphviz/graphviz/-/issues/2173.
#include <stddef.h>
#include <stdbool.h>
-#if defined(_WIN32)
+#ifdef GVDLL
__declspec(dllimport)
#endif
extern gvplugin_library_t gvplugin_neato_layout_LTX_library;
lt_symlist_t lt_preloaded_symbols[] = {
-#if defined(_WIN32)
+#ifdef GVDLL
{ "gvplugin_neato_layout_LTX_library", 0 },
#else
{ "gvplugin_neato_layout_LTX_library", &gvplugin_neato_layout_LTX_library },