Don't try to call towupper() when there's no wctype.h.

This commit is contained in:
Juergen Lock 1999-11-28 19:47:21 +00:00 committed by Alexandre Julliard
parent f4a27b8d41
commit 8354d16897
1 changed files with 5 additions and 0 deletions

View File

@ -34,6 +34,11 @@ static inline int strcmpW( const WCHAR *str1, const WCHAR *str2 )
return *str1 - *str2;
}
#ifndef HAVE_WCTYPE_H
/* FIXME */
#define towupper(ch) (HIBYTE(ch) ? ch : (WCHAR)toupper(LOBYTE(ch)))
#endif
static inline int strcmpiW( const WCHAR *str1, const WCHAR *str2 )
{
while (*str1 && (towupper(*str1) == towupper(*str2))) { str1++; str2++; }