]> granicus.if.org Git - graphviz/commitdiff
dot_builtins: use 'dllimport' even when LTDL is in use
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 12 Nov 2022 19:09:20 +0000 (11:09 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 13 Nov 2022 22:02:49 +0000 (14:02 -0800)
I am not sure why 53eec6fb96646da693e5e8f78047cccf91774dbb included LTDL in the
conditional here. Whether LTDL is in use or not has no bearing on whether we
`dllimport` mark the plugin libraries, because we are unconditionally
dynamically linking them (as opposed to LTDL-based on demand loading).

Gitlab: #1836

cmd/dot/dot_builtins.cpp

index 58b885f6d3fe77a59602bd44df80eb37f96bd83d..f34fd408b9bf3dde70c874892ebb1de437254c86 100644 (file)
@@ -12,7 +12,7 @@
 
 #include <gvc/gvplugin.h>
 
-#if defined(GVDLL) && !defined(ENABLE_LTDL)
+#if defined(GVDLL)
 #define IMPORT __declspec(dllimport)
 #else
 #define IMPORT /* nothing */