compilation fixes for ANSI build

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53993 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2008-06-06 20:56:16 +00:00
parent 44c6d979a8
commit 3d68e52c8f

View File

@ -158,7 +158,7 @@ int wxWcscmp(const wchar_t* s1, const wchar_t* s2)
if (nLen1 != nLen2)
return nLen1 - nLen2;
return wxTmemcmp(s1, s2, nLen1);
return memcmp(s1, s2, nLen1*sizeof(wchar_t));
}
// convert a string from UTF8 to the internal encoding
@ -324,7 +324,7 @@ wxString RegExTestCase::quote(const wxString& arg)
wxString str;
for (size_t i = 0; i < arg.length(); i++) {
wxUChar ch = (wxChar)arg[i];
wxChar ch = (wxChar)arg[i];
const wxChar *p = wxStrchr(needEscape, ch);
if (p)