From: oetiker Date: Wed, 8 Sep 2010 16:41:23 +0000 (+0000) Subject: it seems that strcasecmp and strcasencmp have issues on windows replace X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=f8a299184c27cbc7f15d7ce9172bf89f121f0705;p=rrdtool.git it seems that strcasecmp and strcasencmp have issues on windows replace with stricmp and strnicmp -- jkane mail.com git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2128 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/src/rrd_cgi.c b/src/rrd_cgi.c index 8ce7fba..1ffe8fd 100644 --- a/src/rrd_cgi.c +++ b/src/rrd_cgi.c @@ -9,6 +9,11 @@ #include #endif +#ifdef WIN32 + #define strcasecmp stricmp + #define strcasencmp strnicmp +#endif + #define MEMBLK 1024 /*#define DEBUG_PARSER #define DEBUG_VARS*/