]> git.saurik.com Git - wxWidgets.git/commitdiff
include iostream header when using std streams
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 4 Nov 2006 00:02:02 +0000 (00:02 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 4 Nov 2006 00:02:02 +0000 (00:02 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43004 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/docview/doc.cpp

index cc045583508e79d3e699bbba8bf7e669e9679a0d..82ddbae73f4e69214f4b2edfc46ae50c94c23f61 100644 (file)
 #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