]> granicus.if.org Git - graphviz/commitdiff
support building with Visual Studio 2005+
authorglenlow <devnull@localhost>
Mon, 25 May 2009 08:02:04 +0000 (08:02 +0000)
committerglenlow <devnull@localhost>
Mon, 25 May 2009 08:02:04 +0000 (08:02 +0000)
plugin/core/gvloadimage_core.c
plugin/core/gvrender_core_svg.c
plugin/core/gvrender_core_vml.c

index d6bb26a4e9df447a2aac5828c195efad60aac632..3f01bd4b5574e9f82ebf1543207b089e2d7c9039 100644 (file)
@@ -24,6 +24,9 @@
 #if HAVE_SYS_MMAN_H
 #include <sys/mman.h>
 #endif
+#ifdef _MSC_VER
+#include <io.h>
+#endif
 
 #include "gvplugin_loadimage.h"
 #include "agxbuf.h"
index ea1305741fb5e04342e67c925170901a0b3806ab..6fa842c43176a06cde97bff0b67ca654045bc793 100644 (file)
@@ -53,6 +53,10 @@ static char *sdasharray = "5,2";
 /* SVG dot array */
 static char *sdotarray = "1,5";
 
+#ifndef HAVE_STRCASECMP
+extern int strcasecmp(const char *s1, const char *s2);
+#endif
+
 static void svg_bzptarray(GVJ_t * job, pointf * A, int n)
 {
     int i;
index 14fef6cb5ebc4278164713d02f9bc36a3b1a8488..005e3caf7a1f127d28c98d0ea4d57ace04c8e6f4 100644 (file)
 typedef enum { FORMAT_VML, FORMAT_VMLZ, } format_type;
 
 unsigned int  graphHeight,graphWidth;
+
+#ifndef HAVE_STRCASECMP
+extern int strcasecmp(const char *s1, const char *s2);
+#endif
+
 /*  this is a direct copy fromlib/common/labels.c  */
 static int xml_isentity(char *s)
 {