X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..d2ce649bec85c2c0764a0f786d2b1ef444321404:/include/wx/buffer.h 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);