From 03057367a01ff7d2eaa18e8a1fdd35a309d300d5 Mon Sep 17 00:00:00 2001 From: erg Date: Tue, 17 Jul 2007 21:46:51 +0000 Subject: [PATCH] Allow default disciplines to be used in dlls on Windows. --- lib/agraph/agraph.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/agraph/agraph.h b/lib/agraph/agraph.h index 36843ef72..16d99ad27 100644 --- a/lib/agraph/agraph.h +++ b/lib/agraph/agraph.h @@ -174,11 +174,16 @@ for the name. */ }; /* default resource disciplines */ +#if !defined(_BLD_agraph) && defined(GVDLL) +#define extern __declspec(dllimport) +#endif + extern Agmemdisc_t AgMemDisc; extern Agiddisc_t AgIdDisc; extern Agiodisc_t AgIoDisc; extern Agdisc_t AgDefaultDisc; +#undef extern struct Agdstate_s { void *mem; -- 2.40.0