[project @ 2003-10-09 13:59:33 by stolz]
authorstolz <unknown>
Thu, 9 Oct 2003 13:59:33 +0000 (13:59 +0000)
committerstolz <unknown>
Thu, 9 Oct 2003 13:59:33 +0000 (13:59 +0000)
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

index 7b84535..d664a13 100644 (file)
@@ -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