Fixes to allow compilation with no wchar_t (djgpp probably has a real wchar_t

now, I will check, but compilation should work without anyway).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33834 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Michael Wetherell
2005-04-22 15:12:46 +00:00
parent ade0f98ade
commit 61c213fe22
3 changed files with 22 additions and 2 deletions

View File

@@ -300,7 +300,7 @@ TAG_HANDLER_BEGIN(TITLE, "TITLE")
wxString title = m_WParser->GetSource()->Mid(
tag.GetBeginPos(),
tag.GetEndPos1()-tag.GetBeginPos());
#if !wxUSE_UNICODE
#if !wxUSE_UNICODE && wxUSE_WCHAR_T
wxCSConv conv(m_WParser->GetInputEncoding());
title = wxString(title.wc_str(conv), wxConvLocal);
#endif