X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fbfb8bcc3fa17e079d4219655b173f8ed2ccc65a..a9a56347b84be54a9d48df2cfe08ddf761aaf491:/samples/docview/doc.cpp?ds=sidebyside diff --git a/samples/docview/doc.cpp b/samples/docview/doc.cpp index cc04558350..87a24dad4e 100644 --- a/samples/docview/doc.cpp +++ b/samples/docview/doc.cpp @@ -19,11 +19,16 @@ #ifndef WX_PRECOMP #include "wx/wx.h" #endif -#include "wx/txtstrm.h" #ifdef __WXMAC__ #include "wx/filename.h" #endif +#if wxUSE_STD_IOSTREAM + #include "wx/ioswrap.h" +#else + #include "wx/txtstrm.h" +#endif + #if !wxUSE_DOC_VIEW_ARCHITECTURE #error You must set wxUSE_DOC_VIEW_ARCHITECTURE to 1 in setup.h! #endif @@ -167,7 +172,7 @@ wxOutputStream &DoodleSegment::SaveObject(wxOutputStream& stream) wxTextOutputStream text_stream( stream ); wxInt32 n = lines.GetCount(); - text_stream << n << _T('\n'); + text_stream << n << _T("\n"); wxList::compatibility_iterator node = lines.GetFirst(); while (node)