libport: Undefine strcasecmp and strncasecmp in case they are defined to stricmp and strnicmp respectively.
This commit is contained in:
parent
ce8d915c03
commit
7cb2ced97d
|
@ -24,6 +24,7 @@
|
|||
#include <ctype.h>
|
||||
|
||||
#ifndef HAVE_STRCASECMP
|
||||
#undef strcasecmp
|
||||
int strcasecmp( const char *str1, const char *str2 )
|
||||
{
|
||||
const unsigned char *ustr1 = (const unsigned char *)str1;
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include <ctype.h>
|
||||
|
||||
#ifndef HAVE_STRNCASECMP
|
||||
#undef strncasecmp
|
||||
int strncasecmp( const char *str1, const char *str2, size_t n )
|
||||
{
|
||||
const unsigned char *ustr1 = (const unsigned char *)str1;
|
||||
|
|
Loading…
Reference in New Issue