X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/73a89308a4f1903331d4d056db90ababcb10e699..4d293f8ef41f405a8ea389ac3e00c0e268e4e305:/src/common/strconv.cpp diff --git a/src/common/strconv.cpp b/src/common/strconv.cpp index 8b97f59337..4a7c55d033 100644 --- a/src/common/strconv.cpp +++ b/src/common/strconv.cpp @@ -37,6 +37,25 @@ #include #include + +#include "wx/debug.h" +#include "wx/strconv.h" +#include "wx/intl.h" +#include "wx/log.h" + +// ---------------------------------------------------------------------------- +// globals +// ---------------------------------------------------------------------------- + +WXDLLEXPORT_DATA(wxMBConv *) wxConvCurrent = &wxConvLibc; + + +// ============================================================================ +// implementation +// ============================================================================ + +#if wxUSE_WCHAR_T + #ifdef __SALFORDC__ #include #endif @@ -49,12 +68,6 @@ #include #endif -#include "wx/debug.h" -#include "wx/strconv.h" -#include "wx/intl.h" -#include "wx/log.h" - -#if wxUSE_WCHAR_T #define BSWAP_UCS4(str, len) { unsigned _c; for (_c=0; _c 0x530) +#if ( defined(__BORLANDC__) && (__BORLANDC__ > 0x530) ) \ + || ( defined(__MWERKS__) && defined(__WXMSW__) ) size_t inbuf = std::wcslen(psz); #else size_t inbuf = ::wcslen(psz); @@ -894,7 +899,8 @@ size_t wxCSConv::WC2MB(char *buf, const wchar_t *psz, size_t n) const return m_cset->WC2MB(buf, psz, n); // latin-1 (direct) -#if defined(__BORLANDC__) && (__BORLANDC__ > 0x530) +#if ( defined(__BORLANDC__) && (__BORLANDC__ > 0x530) ) \ + || ( defined(__MWERKS__) && defined(__WXMSW__) ) size_t len=std::wcslen(psz); #else size_t len=::wcslen(psz); @@ -969,7 +975,6 @@ public: // ---------------------------------------------------------------------------- WXDLLEXPORT_DATA(wxMBConv) wxConvLibc, wxConvFile; -WXDLLEXPORT_DATA(wxMBConv *) wxConvCurrent = &wxConvLibc; #endif // wxUSE_WCHAR_T