Rob Shearman : libport: Undefine strcasecmp and strncasecmp in case they are defined to stricmp and strnicmp respectively .
Alexandre Julliard
julliard at winehq.org
Tue Mar 4 14:31:40 CST 2008
Module: wine
Branch: master
Commit: 7cb2ced97d5738ffaba296b68abbca50245bdb49
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7cb2ced97d5738ffaba296b68abbca50245bdb49
Author: Rob Shearman <rob at 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;
More information about the wine-cvs
mailing list