From 9bc5a74e4189f3acbd78e3a65259b91e3b1d1dcd Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Sun, 20 Jun 2010 20:23:42 +0000 Subject: [PATCH] Don't define the C localeEncoding on Windows (it causes warnings, and isn't used) --- cbits/PrelIOUtils.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cbits/PrelIOUtils.c b/cbits/PrelIOUtils.c index f43f5d8..9e05f08 100644 --- a/cbits/PrelIOUtils.c +++ b/cbits/PrelIOUtils.c @@ -30,6 +30,7 @@ void debugBelch2(const char*s, char *t) # include #endif +#if !defined(mingw32_HOST_OS) const char* localeEncoding(void) { #if defined(HAVE_LIBCHARSET) @@ -46,5 +47,6 @@ const char* localeEncoding(void) return ""; #endif } +#endif #endif /* __GLASGOW_HASKELL__ */ -- 1.7.10.4