Commit fecb8214 authored by Nick Mathewson's avatar Nick Mathewson 🏃
Browse files

Try to use stricmp variants that MSDN actually recommends

Per recommendation by Gisle Vanem
parent 2878dad9
......@@ -18,13 +18,13 @@
#ifndef HAVE_STRNCASECMP
static inline int strncasecmp(const char *a, const char *b, size_t n);
static inline int strncasecmp(const char *a, const char *b, size_t n) {
return strncmpi(a,b);
return _strnicmp(a,b,n);
}
#endif
#ifndef HAVE_STRCASECMP
static inline int strcasecmp(const char *a, const char *b, size_t n);
static inline int strcasecmp(const char *a, const char *b, size_t n) {
return strcmpi(a,b);
return _stricmp(a,b);
}
#endif
#endif
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment