From 474187f06ade33179c0ed9f0ffe416fb9a8c58b9 Mon Sep 17 00:00:00 2001 From: glenlow Date: Mon, 25 May 2009 08:02:04 +0000 Subject: [PATCH] support building with Visual Studio 2005+ --- plugin/core/gvloadimage_core.c | 3 +++ plugin/core/gvrender_core_svg.c | 4 ++++ plugin/core/gvrender_core_vml.c | 5 +++++ 3 files changed, 12 insertions(+) diff --git a/plugin/core/gvloadimage_core.c b/plugin/core/gvloadimage_core.c index d6bb26a4e..3f01bd4b5 100644 --- a/plugin/core/gvloadimage_core.c +++ b/plugin/core/gvloadimage_core.c @@ -24,6 +24,9 @@ #if HAVE_SYS_MMAN_H #include #endif +#ifdef _MSC_VER +#include +#endif #include "gvplugin_loadimage.h" #include "agxbuf.h" diff --git a/plugin/core/gvrender_core_svg.c b/plugin/core/gvrender_core_svg.c index ea1305741..6fa842c43 100644 --- a/plugin/core/gvrender_core_svg.c +++ b/plugin/core/gvrender_core_svg.c @@ -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; diff --git a/plugin/core/gvrender_core_vml.c b/plugin/core/gvrender_core_vml.c index 14fef6cb5..005e3caf7 100644 --- a/plugin/core/gvrender_core_vml.c +++ b/plugin/core/gvrender_core_vml.c @@ -33,6 +33,11 @@ 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) { -- 2.40.0