From cb74a1fe9eaeeb45389ae3a02e7bd10606e5344c 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/gvc/gvcext.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lib/gvc/gvcext.h b/lib/gvc/gvcext.h index f68f38124..a1483d29d 100644 --- a/lib/gvc/gvcext.h +++ b/lib/gvc/gvcext.h @@ -70,11 +70,25 @@ extern "C" { typedef struct gvplugin_available_s gvplugin_available_t; +/*visual studio*/ +#ifdef WIN32_DLL +#ifndef GVC_EXPORTS +__declspec(dllimport) lt_symlist_t lt_preloaded_symbols[]; +#else +__declspec(dllexport) lt_symlist_t lt_preloaded_symbols[]; +#endif +#endif +/*end visual studio*/ + + +#ifndef WIN32_DLL #if defined(GVDLL) __declspec(dllexport) lt_symlist_t lt_preloaded_symbols[]; #else extern lt_symlist_t lt_preloaded_symbols[]; #endif +#endif + #ifdef __cplusplus } -- 2.40.0