Commit 7cb2ced9 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

libport: Undefine strcasecmp and strncasecmp in case they are defined to stricmp…

libport: Undefine strcasecmp and strncasecmp in case they are defined to stricmp and strnicmp respectively.
parent ce8d915c
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include <ctype.h> #include <ctype.h>
#ifndef HAVE_STRCASECMP #ifndef HAVE_STRCASECMP
#undef strcasecmp
int strcasecmp( const char *str1, const char *str2 ) int strcasecmp( const char *str1, const char *str2 )
{ {
const unsigned char *ustr1 = (const unsigned char *)str1; const unsigned char *ustr1 = (const unsigned char *)str1;
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include <ctype.h> #include <ctype.h>
#ifndef HAVE_STRNCASECMP #ifndef HAVE_STRNCASECMP
#undef strncasecmp
int strncasecmp( const char *str1, const char *str2, size_t n ) int strncasecmp( const char *str1, const char *str2, size_t n )
{ {
const unsigned char *ustr1 = (const unsigned char *)str1; const unsigned char *ustr1 = (const unsigned char *)str1;
......
Markdown is supported
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