From 8194871ccd58c1a98c5b1093984b6119678e4621 Mon Sep 17 00:00:00 2001 From: arif Date: Wed, 21 Jan 2009 16:47:00 +0000 Subject: [PATCH] changes required for MS visual studio DLL build --- lib/cdt/cdt.h | 10 +++++++++- lib/cgraph/cgraph.h | 8 ++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/lib/cdt/cdt.h b/lib/cdt/cdt.h index f7ac502cf..d0c440f90 100644 --- a/lib/cdt/cdt.h +++ b/lib/cdt/cdt.h @@ -163,6 +163,14 @@ extern "C" { #define DT_DISC 3 /* discipline is about to be changed */ #define DT_METH 4 /* method is about to be changed */ +/*visual studio*/ +#ifdef WIN32_DLL +#ifndef CDT_EXPORTS +#define extern __declspec(dllimport) +#endif +#endif +/*end visual studio*/ + #if _BLD_cdt && defined(__EXPORT__) #define extern __EXPORT__ #endif @@ -182,7 +190,7 @@ extern "C" { /* compatibility stuff; will go away */ #ifndef KPVDEL - extern Dtmethod_t *Dtorder; + extern Dtmethod_t *Dtorder; extern Dtmethod_t *Dttree; extern Dtmethod_t *Dthash; extern Dtmethod_t _Dttree; diff --git a/lib/cgraph/cgraph.h b/lib/cgraph/cgraph.h index d91f56261..9cdd7e7fb 100644 --- a/lib/cgraph/cgraph.h +++ b/lib/cgraph/cgraph.h @@ -186,6 +186,14 @@ struct Agdisc_s { /* user's discipline */ #define extern __declspec(dllimport) #endif +/*visual studio*/ +#ifdef WIN32_DLL +#ifndef CGRAPH_EXPORTS +#define extern __declspec(dllimport) +#endif +#endif +/*end visual studio*/ + extern Agmemdisc_t AgMemDisc; extern Agiddisc_t AgIdDisc; extern Agiodisc_t AgIoDisc; -- 2.40.0