X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0a1c1e6214827e1d9dc9f6ca2c39567cb2d35ebc..4178000933f0618d2cc9dc2f80dfed91b0c61464:/src/common/strconv.cpp diff --git a/src/common/strconv.cpp b/src/common/strconv.cpp index ab68a01e14..d85340b877 100644 --- a/src/common/strconv.cpp +++ b/src/common/strconv.cpp @@ -48,6 +48,10 @@ #include #endif +#ifdef __WXMSW__ + #include +#endif + #include "wx/debug.h" #include "wx/strconv.h" @@ -83,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) { @@ -115,6 +121,8 @@ static size_t decode_utf16(wxUint16*input,wxUint32&output) } } +#endif // WC_UTF16 + // ---------------------------------------------------------------------------- // wxMBConv // ----------------------------------------------------------------------------