Don't define the C localeEncoding on Windows
authorIan Lynagh <igloo@earth.li>
Sun, 20 Jun 2010 20:23:42 +0000 (20:23 +0000)
committerIan Lynagh <igloo@earth.li>
Sun, 20 Jun 2010 20:23:42 +0000 (20:23 +0000)
(it causes warnings, and isn't used)

cbits/PrelIOUtils.c

index f43f5d8..9e05f08 100644 (file)
@@ -30,6 +30,7 @@ void debugBelch2(const char*s, char *t)
 #  include <langinfo.h>
 #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__ */