diff --git a/samples/docview/doc.cpp b/samples/docview/doc.cpp index cc04558350..82ddbae73f 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