X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7af284fda7500594b2ab86c8ba60138164ab4d04..9298c435cf9b3f5112de555c46c52c51f1d284bb:/src/common/strconv.cpp diff --git a/src/common/strconv.cpp b/src/common/strconv.cpp index 82656dd1d2..4a7c55d033 100644 --- a/src/common/strconv.cpp +++ b/src/common/strconv.cpp @@ -641,7 +641,7 @@ public: size_t outbuf = n; size_t res, cres; - wchar_t *tmpbuf; + wchar_t *tmpbuf = 0; if (g_wcNeedsSwap) { @@ -764,7 +764,8 @@ public: size_t WC2MB(char *buf, const wchar_t *psz, size_t n) { -#if defined(__BORLANDC__) && (__BORLANDC__ > 0x530) +#if ( defined(__BORLANDC__) && (__BORLANDC__ > 0x530) ) \ + || ( defined(__MWERKS__) && defined(__WXMSW__) ) size_t inbuf = std::wcslen(psz); #else size_t inbuf = ::wcslen(psz); @@ -898,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);