X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/adb45366da2cb1ee72f548ab2fa149f071327682..e8617760b089b3dd31e4d77ce493267a82fc1003:/src/common/strconv.cpp diff --git a/src/common/strconv.cpp b/src/common/strconv.cpp index 0610b43452..bbd8ce8369 100644 --- a/src/common/strconv.cpp +++ b/src/common/strconv.cpp @@ -6,7 +6,7 @@ // Created: 29/01/98 // RCS-ID: $Id$ // Copyright: (c) 1999 Ove Kaaven, Robert Roebling, Vadim Zeitlin, Vaclav Slavik -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// // ============================================================================ @@ -58,7 +58,8 @@ WXDLLEXPORT_DATA(wxMBConv) wxConvLibc, wxConvFile, wxConvISO8859_1, - wxConvLocal; + wxConvLocal, + wxConvUTF8; #endif // wxUSE_WCHAR_T WXDLLEXPORT_DATA(wxMBConv *) wxConvCurrent = &wxConvLibc; @@ -782,13 +783,7 @@ size_t IC_CharSet::WC2MB(char *buf, const wchar_t *psz, size_t n) // Win32 conversion classes // ============================================================================ -#if defined(__WIN32__) && !defined(__WXMICROWIN__) - -#ifdef __WXWINE__ - #define WINE_CAST (WCHAR *) -#else - #define WINE_CAST -#endif +#if defined(__WIN32__) && !defined(__WXMICROWIN__) && !defined(__WXUNIVERSAL__) extern long wxCharsetToCodepage(const wxChar *charset); // from utils.cpp @@ -809,7 +804,7 @@ public: 0, // flags (none) psz, // input string -1, // its length (NUL-terminated) - WINE_CAST buf, // output string + buf, // output string buf ? n : 0 // size of output buffer ); @@ -824,7 +819,7 @@ public: ( m_CodePage, // code page 0, // flags (none) - WINE_CAST psz, // input string + psz, // input string -1, // it is (wide) NUL-terminated buf, // output buffer buf ? n : 0, // and its size @@ -842,7 +837,7 @@ public: public: long m_CodePage; }; -#endif // __WIN32__ +#endif // defined(__WIN32__) && !defined(__WXMICROWIN__) && !defined(__WXUNIVERSAL__) // ============================================================================ // wxEncodingConverter based conversion classes @@ -942,14 +937,14 @@ static wxCharacterSet *wxGetCharacterSet(const wxChar *name) cset = NULL; } -#if defined(__WIN32__) && !defined(__WXMICROWIN__) +#if defined(__WIN32__) && !defined(__WXMICROWIN__) && !defined(__WXUNIVERSAL__) cset = new CP_CharSet(name); if ( cset->usable() ) return cset; delete cset; cset = NULL; -#endif // __WIN32__ +#endif // defined(__WIN32__) && !defined(__WXMICROWIN__) && !defined(__WXUNIVERSAL__) #if wxUSE_FONTMAP cset = new EC_CharSet(name);