Unicode compilation fix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36518 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2005-12-22 00:17:22 +00:00
parent 20a34d96ef
commit 53599fbbd8

View File

@@ -176,7 +176,12 @@ void TokenizerTestCase::StrtokCompat()
if ( ttd.mode != wxTOKEN_STRTOK ) if ( ttd.mode != wxTOKEN_STRTOK )
continue; continue;
wxCharBuffer buf(ttd.str); #if wxUSE_UNICODE
wxWCharBuffer
#else
wxCharBuffer
#endif
buf(ttd.str);
wxChar *last; wxChar *last;
wxChar *s = wxStrtok(buf.data(), ttd.delims, &last); wxChar *s = wxStrtok(buf.data(), ttd.delims, &last);