From: erg Date: Tue, 17 Jul 2007 21:46:51 +0000 (+0000) Subject: Allow default disciplines to be used in dlls on Windows. X-Git-Tag: LAST_LIBGRAPH~32^2~5518 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=03057367a01ff7d2eaa18e8a1fdd35a309d300d5;p=graphviz Allow default disciplines to be used in dlls on Windows. --- 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;