]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/strconv.cpp
fixing mngw32 (cross)compilation
[wxWidgets.git] / src / common / strconv.cpp
index baed36b0013ad80b2209b147d9c5b1dd20c14a36..69f9a7a85a497ab12979ea12b967a0dd3574cee9 100644 (file)
@@ -55,7 +55,7 @@
 #include "wx/debug.h"
 #include "wx/strconv.h"
 
-#ifdef WORDS_BIGENDIAN
+#if defined(WORDS_BIGENDIAN) || defined(__STDC_ISO_10646__)
 #define BSWAP_UCS4(str, len)
 #define BSWAP_UCS2(str, len)
 #else
@@ -87,6 +87,8 @@ WXDLLEXPORT_DATA(wxMBConv *) wxConvCurrent = &wxConvLibc;
 
 #if wxUSE_WCHAR_T
 
+#ifdef WC_UTF16
+
 static size_t encode_utf16(wxUint32 input,wxUint16*output)
 {
   if (input<=0xffff) {
@@ -119,6 +121,8 @@ static size_t decode_utf16(wxUint16*input,wxUint32&output)
   }
 }
 
+#endif // WC_UTF16
+
 // ----------------------------------------------------------------------------
 // wxMBConv
 // ----------------------------------------------------------------------------