From: stolz Date: Thu, 9 Oct 2003 13:59:33 +0000 (+0000) Subject: [project @ 2003-10-09 13:59:33 by stolz] X-Git-Tag: nhc98-1-18-release~482 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=8b9fdc3a90f36665d4cb9f44df4f766764517408;p=haskell-directory.git [project @ 2003-10-09 13:59:33 by stolz] FreeBSD 4.X has an emtpy wctype.h, so test one of the affected functions in Unicode.hsc if it's really there. --- diff --git a/GHC/Unicode.hsc b/GHC/Unicode.hsc index 7b84535..d664a13 100644 --- a/GHC/Unicode.hsc +++ b/GHC/Unicode.hsc @@ -112,7 +112,7 @@ toLower :: Char -> Char -- ----------------------------------------------------------------------------- -- Win32 implementation -#if defined(HAVE_WCTYPE_H) || mingw32_TARGET_OS +#if (defined(HAVE_WCTYPE_H) && HAVE_ISWSPACE) || mingw32_TARGET_OS -- Use the wide-char classification functions if available. Glibc -- seems to implement these properly, even for chars > 0xffff, as long