Revision: 117
http://pure-lang.svn.sourceforge.net/pure-lang/?rev=117&view=rev
Author: agraef
Date: 2008-05-23 17:05:42 -0700 (Fri, 23 May 2008)
Log Message:
-----------
More Windows compatibility fixes.
Modified Paths:
--------------
pure/trunk/util.cc
Modified: pure/trunk/util.cc
===================================================================
--- pure/trunk/util.cc 2008-05-23 19:40:46 UTC (rev 116)
+++ pure/trunk/util.cc 2008-05-24 00:05:42 UTC (rev 117)
@@ -14,6 +14,8 @@
// disable this if your system doesn't have nl_langinfo()
#define HAVE_LANGINFO_CODESET
#include <langinfo.h>
+#else
+#include <windows.h>
#endif
/* some utf-8 helpers pilfered from the Q source ***************************/
@@ -432,7 +434,7 @@
#endif /* HAVE_LANGINFO_CODESET */
}
-#ifdef __APPLE__
+#if defined(__APPLE__) || defined(__MINGW32__)
#define myiconv(ic, inbuf, inbytes, outbuf, outbytes) \
iconv(ic, (const char**)inbuf, inbytes, outbuf, outbytes)
#else
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|