git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6742
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxASSERT_MSG( wcs, wxT("NULL string in wxWCharBuffer") );
if (wcs) {
wxASSERT_MSG( wcs, wxT("NULL string in wxWCharBuffer") );
if (wcs) {
+#if (defined(__BORLANDC__) && (__BORLANDC__ > 0x530))
+ size_t siz = (std::wcslen(wcs)+1)*sizeof(wchar_t);
+#else
size_t siz = (::wcslen(wcs)+1)*sizeof(wchar_t);
size_t siz = (::wcslen(wcs)+1)*sizeof(wchar_t);
m_wcs = (wchar_t *)malloc(siz);
memcpy(m_wcs, wcs, siz);
}
m_wcs = (wchar_t *)malloc(siz);
memcpy(m_wcs, wcs, siz);
}
+#if defined(__BORLANDC__) && (__BORLANDC__ > 0x530)
+ return std::wcslen(psz);
+#else
break;
#if !defined(__WATCOMC__) && ! (defined(__BORLANDC__) && (__BORLANDC__ < 0x500))
case CF_UNICODETEXT:
break;
#if !defined(__WATCOMC__) && ! (defined(__BORLANDC__) && (__BORLANDC__ < 0x500))
case CF_UNICODETEXT:
+#if (defined(__BORLANDC__) && (__BORLANDC__ > 0x530))
+ size = std::wcslen((const wchar_t *)pBuf);
+#else
size = ::wcslen((const wchar_t *)pBuf);
size = ::wcslen((const wchar_t *)pBuf);
break;
#endif
case CF_BITMAP:
break;
#endif
case CF_BITMAP: