]> git.saurik.com Git - wxWidgets.git/commitdiff
Only compile wxStd{Input,Output}Stream if wxUSE_STREAMS==1.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 12 Jul 2010 22:50:51 +0000 (22:50 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 12 Jul 2010 22:50:51 +0000 (22:50 +0000)
This fixes compilation of minimal wxWidgets build.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64924 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/stdstream.h
src/common/stdstream.cpp

index a973bbb7688ed2bbb38013d8637fccdcf06d8619..e3f3a474feb21b2b3d520db93098e24bf84626f1 100644 (file)
@@ -14,7 +14,7 @@
 
 #include "wx/defs.h"    // wxUSE_STD_IOSTREAM
 
-#if wxUSE_STD_IOSTREAM
+#if wxUSE_STREAMS && wxUSE_STD_IOSTREAM
 
 #include "wx/defs.h"
 #include "wx/stream.h"
@@ -106,6 +106,6 @@ protected:
     wxStdOutputStreamBuffer m_streamBuffer;
 };
 
-#endif // wxUSE_STD_IOSTREAM
+#endif // wxUSE_STREAMS && wxUSE_STD_IOSTREAM
 
 #endif // _WX_STDSTREAM_H_
index cec1fc925f413942b6c6cccd68484a6f99cade35..54b18ad2dd1ae7b8d9853835a32269e99d2bd156 100644 (file)
@@ -20,7 +20,7 @@
     #pragma hdrstop
 #endif
 
-#if wxUSE_STD_IOSTREAM
+#if wxUSE_STREAMS && wxUSE_STD_IOSTREAM
 
 #ifndef WX_PRECOMP
 #endif
@@ -290,4 +290,4 @@ wxStdOutputStream::wxStdOutputStream(wxOutputStream& stream) :
 
 #endif // VC6/!VC6
 
-#endif // wxUSE_STD_IOSTREAM
+#endif // wxUSE_STREAMS && wxUSE_STD_IOSTREAM