From 7cb2ced97d5738ffaba296b68abbca50245bdb49 Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Mon, 3 Mar 2008 21:52:27 +0000 Subject: [PATCH] libport: Undefine strcasecmp and strncasecmp in case they are defined to stricmp and strnicmp respectively. --- libs/port/strcasecmp.c | 1 + libs/port/strncasecmp.c | 1 + 2 files changed, 2 insertions(+) diff --git a/libs/port/strcasecmp.c b/libs/port/strcasecmp.c index b641cbcf6ee..ceab94865b2 100644 --- a/libs/port/strcasecmp.c +++ b/libs/port/strcasecmp.c @@ -24,6 +24,7 @@ #include #ifndef HAVE_STRCASECMP +#undef strcasecmp int strcasecmp( const char *str1, const char *str2 ) { const unsigned char *ustr1 = (const unsigned char *)str1; diff --git a/libs/port/strncasecmp.c b/libs/port/strncasecmp.c index 315c8af6cd5..e74ebb06f97 100644 --- a/libs/port/strncasecmp.c +++ b/libs/port/strncasecmp.c @@ -24,6 +24,7 @@ #include #ifndef HAVE_STRNCASECMP +#undef strncasecmp int strncasecmp( const char *str1, const char *str2, size_t n ) { const unsigned char *ustr1 = (const unsigned char *)str1; -- 2.11.4.GIT