aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_string.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/ngx_string.h')
-rw-r--r--src/core/ngx_string.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/ngx_string.h b/src/core/ngx_string.h
index 84110b9a5..09de18e52 100644
--- a/src/core/ngx_string.h
+++ b/src/core/ngx_string.h
@@ -18,8 +18,10 @@ typedef struct {
#if (WIN32)
-#define ngx_strncasecmp strnicmp
-#define ngx_strcasecmp stricmp
+#define ngx_strncasecmp(s1, s2, n) \
+ strnicmp((const char *) s1, (const char *) s2, n)
+#define ngx_strcasecmp(s1, s2) \
+ stricmp((const char *) s1, (const char *) s2)
#define ngx_snprintf _snprintf
#define ngx_vsnprintf _vsnprintf