]> granicus.if.org Git - graphviz/commitdiff
Allow default disciplines to be used in dlls on Windows.
authorerg <devnull@localhost>
Tue, 17 Jul 2007 21:46:51 +0000 (21:46 +0000)
committererg <devnull@localhost>
Tue, 17 Jul 2007 21:46:51 +0000 (21:46 +0000)
lib/agraph/agraph.h

index 36843ef72e4bbbdaad35f3d2ffd0ff015e511ef4..16d99ad27bbfaf8e988036ac57bdcce722a0d2a2 100644 (file)
@@ -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;