From 8354d168972a7d5b19fdea411bf584af02b36424 Mon Sep 17 00:00:00 2001 From: Juergen Lock Date: Sun, 28 Nov 1999 19:47:21 +0000 Subject: [PATCH] Don't try to call towupper() when there's no wctype.h. --- server/unicode.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/unicode.h b/server/unicode.h index c1df7f58c3a..dd7d03b740e 100644 --- a/server/unicode.h +++ b/server/unicode.h @@ -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++; }