X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1cd5241886684c67c1e1fde119a5a3e4c4e7583c..3cc487d140f11e26a9c4ae35ba87cc22684da65a:/src/common/strconv.cpp diff --git a/src/common/strconv.cpp b/src/common/strconv.cpp index 9c505d0cc8..d85340b877 100644 --- a/src/common/strconv.cpp +++ b/src/common/strconv.cpp @@ -28,6 +28,10 @@ #pragma hdrstop #endif +#ifdef __WXMSW__ + #include "wx/msw/private.h" +#endif + #include #include #include @@ -44,6 +48,10 @@ #include #endif +#ifdef __WXMSW__ + #include +#endif + #include "wx/debug.h" #include "wx/strconv.h" @@ -79,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) { @@ -111,6 +121,8 @@ static size_t decode_utf16(wxUint16*input,wxUint32&output) } } +#endif // WC_UTF16 + // ---------------------------------------------------------------------------- // wxMBConv // ----------------------------------------------------------------------------