]> granicus.if.org Git - graphviz/commitdiff
fix multiple definitions of gvplugin_neato_layout_LTX_library
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 19 Feb 2021 15:42:04 +0000 (07:42 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 24 Apr 2021 15:47:30 +0000 (08:47 -0700)
Similar to preceding commits, this fixes an issue where MinGW was seeing
 __declspec alternatives but implementing GCC semantics and hence treating
declarations as definitions.

cmd/tools/gvpack.c

index 8760a97ec4644a44f93a08f5588c6b7631b83d8e..5e410ec1c7f221075464f26b1e73833186a5f7ac 100644 (file)
 #include <ingraphs/ingraphs.h>
 #include <pack/pack.h>
 
-/*visual studio*/
 #if defined(_WIN32)
-#define extern __declspec(dllimport)
+  __declspec(dllimport)
 #endif
-/*end visual studio*/
 extern gvplugin_library_t gvplugin_neato_layout_LTX_library;
-#undef extern
 
 lt_symlist_t lt_preloaded_symbols[] = {
 #if defined(_WIN32)