Code

it seems that strcasecmp and strcasencmp have issues on windows replace
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Wed, 8 Sep 2010 16:41:23 +0000 (16:41 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Wed, 8 Sep 2010 16:41:23 +0000 (16:41 +0000)
with stricmp and strnicmp --  jkane mail.com

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@2128 a5681a0c-68f1-0310-ab6d-d61299d08faa

program/src/rrd_cgi.c

index 8ce7fba3792150fdd22c53b7c548e3497c34a7ef..1ffe8fd4639559668a2798d2bc208b42985cb14c 100644 (file)
@@ -9,6 +9,11 @@
 #include <stdlib.h>
 #endif
 
+#ifdef WIN32
+   #define strcasecmp stricmp
+   #define strcasencmp strnicmp
+#endif
+
 #define MEMBLK 1024
 /*#define DEBUG_PARSER
 #define DEBUG_VARS*/