]> granicus.if.org Git - graphviz/commitdiff
changes required for MS visual studio DLL build
authorarif <devnull@localhost>
Wed, 21 Jan 2009 16:47:00 +0000 (16:47 +0000)
committerarif <devnull@localhost>
Wed, 21 Jan 2009 16:47:00 +0000 (16:47 +0000)
lib/gvc/gvcext.h

index f68f38124e99dff464732b56d536928eba45d100..a1483d29df0f91fdf7110a180d2c53a5f5449748 100644 (file)
@@ -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
 }