X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..bc55104d9ab0b0b835644f17a152b4fbbfa8c7b9:/include/wx/buffer.h?ds=sidebyside diff --git a/include/wx/buffer.h b/include/wx/buffer.h index 6556f39cd6..c2aaa0c09b 100644 --- a/include/wx/buffer.h +++ b/include/wx/buffer.h @@ -71,7 +71,8 @@ public: wxASSERT_MSG( wcs, wxT("NULL string in wxWCharBuffer") ); if (wcs) { -#if (defined(__BORLANDC__) && (__BORLANDC__ > 0x530)) +#if ( defined(__BORLANDC__) && (__BORLANDC__ > 0x530) ) \ + || ( defined(__MWERKS__) && defined(__WXMSW__) ) size_t siz = (std::wcslen(wcs)+1)*sizeof(wchar_t); #else size_t siz = (::wcslen(wcs)+1)*sizeof(wchar_t);