mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 11:06:42 +00:00
Those two #ifdefs were wrong on my setup (straightforward RosBE 3.4.2, and also updated to 3.4.4). So:
1. Removed the stricmp guard 2. Added a #ifdef->#undef solution If this break compilation on linux or on gcc 4 on win32 (very low probability, if any), let's think further. svn path=/trunk/; revision=24076
This commit is contained in:
parent
17189649af
commit
4e03e0ec4a
1 changed files with 5 additions and 2 deletions
|
@ -3,7 +3,11 @@
|
||||||
#include "wine/port.h"
|
#include "wine/port.h"
|
||||||
|
|
||||||
#ifndef HAVE_STRCASECMP
|
#ifndef HAVE_STRCASECMP
|
||||||
# ifndef HAVE__STRICMP
|
|
||||||
|
#ifdef strcasecmp
|
||||||
|
# undef strcasecmp
|
||||||
|
#endif
|
||||||
|
|
||||||
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;
|
||||||
|
@ -16,4 +20,3 @@ int strcasecmp( const char *str1, const char *str2 )
|
||||||
return toupper(*ustr1) - toupper(*ustr2);
|
return toupper(*ustr1) - toupper(*ustr2);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue