Rob Shearman : libport: Undefine strcasecmp and strncasecmp in case they are defined to stricmp and strnicmp respectively .
Module: wine Branch: master Commit: 7cb2ced97d5738ffaba296b68abbca50245bdb49 URL: http://source.winehq.org/git/wine.git/?a=commit;h=7cb2ced97d5738ffaba296b68a... Author: Rob Shearman <rob(a)codeweavers.com> Date: Mon Mar 3 21:52:27 2008 +0000 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(+), 0 deletions(-) diff --git a/libs/port/strcasecmp.c b/libs/port/strcasecmp.c index b641cbc..ceab948 100644 --- a/libs/port/strcasecmp.c +++ b/libs/port/strcasecmp.c @@ -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; diff --git a/libs/port/strncasecmp.c b/libs/port/strncasecmp.c index 315c8af..e74ebb0 100644 --- a/libs/port/strncasecmp.c +++ b/libs/port/strncasecmp.c @@ -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;
participants (1)
-
Alexandre Julliard