From 3d68e52c8f8ce9c54c20f1357f5ab6b2a8c4197b Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 6 Jun 2008 20:56:16 +0000 Subject: [PATCH] compilation fixes for ANSI build git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53993 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- tests/regex/regextest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/regex/regextest.cpp b/tests/regex/regextest.cpp index ef63306560..bd08950859 100644 --- a/tests/regex/regextest.cpp +++ b/tests/regex/regextest.cpp @@ -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)