From: Ian Lynagh Date: Sun, 20 Jun 2010 20:23:42 +0000 (+0000) Subject: Don't define the C localeEncoding on Windows X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=9bc5a74e4189f3acbd78e3a65259b91e3b1d1dcd;p=ghc-base.git Don't define the C localeEncoding on Windows (it causes warnings, and isn't used) --- 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__ */