diff --git a/src/rrd_cgi.c b/src/rrd_cgi.c
index 8ce7fba3792150fdd22c53b7c548e3497c34a7ef..df4a9dcdfbd5b14dccaa4b9eb7875c22d89d970b 100644 (file)
--- a/src/rrd_cgi.c
+++ b/src/rrd_cgi.c
#include <stdlib.h>
#endif
+#ifdef WIN32
+ #define strcasecmp stricmp
+ #define strcasencmp strnicmp
+#endif
+
#define MEMBLK 1024
/*#define DEBUG_PARSER
#define DEBUG_VARS*/
val = func(argc, (const char **) args);
free(args-1);
} else {
- /* unable to parse arguments, undo 0-termination by scanargs */
- for (; argc > 0; argc--) {
- *((args[argc - 1]) - 1) = ' ';
- }
-
/* next call, try parsing at current offset +1 */
end = (*buf) + i + 1;