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/branches/1.4@2128 a5681a0c-68f1-0310-ab6d-d61299d08faa

program/src/rrd_cgi.c

index 0ded654f4a250010780343d1adbf7a46c530def6..ac76b679b87e55a2ef9f6ffde7683482c574d294 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*/