]> granicus.if.org Git - graphviz/commitdiff
try to fix dll issues under mingw
authorellson <devnull@localhost>
Fri, 2 Jan 2009 17:47:39 +0000 (17:47 +0000)
committerellson <devnull@localhost>
Fri, 2 Jan 2009 17:47:39 +0000 (17:47 +0000)
lib/gvc/gvc.c
lib/gvc/gvc.h

index 96f2e83c009af2d5457d4e2801351509e7c7df8b..8845f87c9502f7ee3d7187723542f3d36fb0dfcd 100644 (file)
 #include "config.h"
 #endif
 
+#define _BLD_gvc 1
+#include "gvc.h"
+
 #include "builddate.h"
-#include "types.h"
 #include "const.h"
-#include "gvplugin.h"
 #include "gvcjob.h"
 #include "gvcint.h"
 #include "gvcproc.h"
 #include "gvconfig.h"
 
-extern GVC_t *gvNEWcontext(char **info, char *user);
-extern char *gvUsername(void);
-extern int gvRenderJobs (GVC_t * gvc, graph_t * g);
-
 static char *LibInfo[] = {
     "libgvc",          /* Program */
     VERSION,           /* Version */
index c3beaea8425b8eff6e159945630e71cc38899714..9563d5c10613b2a458ae45cb720b7e0bfa2ed05c 100644 (file)
 extern "C" {
 #endif
 
+#if defined(_BLD_gvc) && defined(__EXPORT__)
+#define extern  __EXPORT__
+#endif
+
 #define dotneato_initialize dotneato_initialize_DEPRECATED_BY_gvParseArgs
 #define parse_args parse_args_DEPRECATED_BY_gvParseArgs
 
@@ -111,6 +115,8 @@ extern int gvFreeContext(GVC_t *gvc);
  */
 extern void gvAddLibrary(GVC_t *gvc, gvplugin_library_t *lib);
 
+#undef extern
+
 #ifdef __cplusplus
 }
 #endif