From 459cb796a0a1a5604187cd06d273981c06fb143b Mon Sep 17 00:00:00 2001 From: erg Date: Thu, 24 May 2007 19:23:50 +0000 Subject: [PATCH] Further modifications for Graphviz dlls for Windows --- lib/common/globals.c | 4 ++++ lib/common/globals.h | 5 +++++ lib/gvc/Makefile.am | 5 +++++ 3 files changed, 14 insertions(+) diff --git a/lib/common/globals.c b/lib/common/globals.c index 927b3cb61..6e4ecd4f0 100644 --- a/lib/common/globals.c +++ b/lib/common/globals.c @@ -18,6 +18,10 @@ #include "config.h" #endif +#if defined(GVDLL) +#define _BLD_dotneato 1 +#else #define EXTERN +#endif #include "types.h" #include "globals.h" diff --git a/lib/common/globals.h b/lib/common/globals.h index 78b62d789..f2a166f9f 100644 --- a/lib/common/globals.h +++ b/lib/common/globals.h @@ -38,6 +38,10 @@ # define external __IMPORT__ #endif #endif +#if !_BLD_dotneato && defined(GVDLL) +#define external __declspec(dllimport) +#define EXTERN __declspec(dllimport) +#endif #ifndef external # define external extern @@ -122,6 +126,7 @@ extern "C" { EXTERN fdpParms_t fdp_parms; #undef external +#undef EXTERN #ifdef __cplusplus } diff --git a/lib/gvc/Makefile.am b/lib/gvc/Makefile.am index 2b3c9cc9a..c83c3f8db 100644 --- a/lib/gvc/Makefile.am +++ b/lib/gvc/Makefile.am @@ -48,7 +48,12 @@ libgvc_la_LIBADD = $(libgvc_C_la_LIBADD) \ # and with the plugins themselves, e.g. # -lgvplugin_dot_layout -lgvplugin_neato_layout -lgvplugin_gd -lgvplugin_pangocairo libgvc_builtins_la_LDFLAGS = -version-info @VERSION_INFO@ +if WITH_WIN32 +libgvc_builtins_la_SOURCES = $(libgvc_C_la_SOURCES) dot_builtins.c no_demand_loading.c +else libgvc_builtins_la_SOURCES = $(libgvc_C_la_SOURCES) +endif + libgvc_builtins_la_LIBADD = $(libgvc_la_LIBADD) .3.pdf: -- 2.40.0