]> git.saurik.com Git - wxWidgets.git/commitdiff
compile wxFileXXXStream without wxFFileXXXStream
authorRyan Norton <wxprojects@comcast.net>
Thu, 17 Feb 2005 10:42:22 +0000 (10:42 +0000)
committerRyan Norton <wxprojects@comcast.net>
Thu, 17 Feb 2005 10:42:22 +0000 (10:42 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32115 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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

index 288371487464e431b9a4eb31afd6baa4ee30d5a6..d0d50a608cc129c12dfc3d5cfa1b8f50d6ba1a43 100644 (file)
@@ -18,7 +18,7 @@
 
 #include "wx/defs.h"
 
-#if wxUSE_STREAMS && wxUSE_FILE
+#if wxUSE_STREAMS
 
 #include "wx/object.h"
 #include "wx/string.h"
@@ -26,6 +26,8 @@
 #include "wx/file.h"
 #include "wx/ffile.h"
 
+#if wxUSE_FILE
+
 // ----------------------------------------------------------------------------
 // wxFileStream using wxFile
 // ----------------------------------------------------------------------------
@@ -96,6 +98,10 @@ private:
     DECLARE_NO_COPY_CLASS(wxFileStream)
 };
 
+#endif //wxUSE_FILE
+
+#if wxUSE_FFILE
+
 // ----------------------------------------------------------------------------
 // wxFFileStream using wxFFile
 // ----------------------------------------------------------------------------
@@ -166,6 +172,8 @@ private:
     DECLARE_NO_COPY_CLASS(wxFFileStream)
 };
 
-#endif // wxUSE_STREAMS && wxUSE_FILE
+#endif //wxUSE_FFILE
+
+#endif // wxUSE_STREAMS
 
 #endif // _WX_WXFSTREAM_H__
index f0b0178083e54f7f68967fe2287558a1333e956b..8370eebc6faac3f3332554139f29e37bfcee0aa8 100644 (file)
   #pragma hdrstop
 #endif
 
-#if wxUSE_STREAMS && wxUSE_FILE
+#if wxUSE_STREAMS
 
 #include <stdio.h>
 #include "wx/stream.h"
 #include "wx/wfstream.h"
 
+#if wxUSE_FILE
+
 // ----------------------------------------------------------------------------
 // wxFileInputStream
 // ----------------------------------------------------------------------------
@@ -191,6 +193,10 @@ wxFileStream::wxFileStream(const wxString& fileName)
     wxFileOutputStream::m_file = wxFileInputStream::m_file;
 }
 
+#endif //wxUSE_FILE
+
+#if wxUSE_FFILE
+
 // ----------------------------------------------------------------------------
 // wxFFileInputStream
 // ----------------------------------------------------------------------------
@@ -350,5 +356,7 @@ wxFFileStream::wxFFileStream(const wxString& fileName)
     wxFFileOutputStream::m_file = wxFFileInputStream::m_file;
 }
 
-#endif // wxUSE_STREAMS && wxUSE_FILE
+#endif //wxUSE_FFILE
+
+#endif // wxUSE_STREAMS