From 8b9fdc3a90f36665d4cb9f44df4f766764517408 Mon Sep 17 00:00:00 2001 From: stolz Date: Thu, 9 Oct 2003 13:59:33 +0000 Subject: [PATCH] [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. --- GHC/Unicode.hsc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 1.7.10.4