]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/mstream.cpp
Some minors changes, like adding empty lines at end of files, to be able to compile...
[wxWidgets.git] / src / common / mstream.cpp
index 560c0fd1ae305c729856ae51633d9b0e25824b69..6519a8bc3a995b81776ab1815554681296359686 100644 (file)
 
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
-#include <stdlib.h>
-#include <wx/stream.h>
-#include <wx/mstream.h>
 
 #ifdef __BORLANDC__
-#pragma hdrstop
+  #pragma hdrstop
 #endif
 
+#if wxUSE_STREAMS
+
+#include <stdlib.h>
+#include <wx/stream.h>
+#include <wx/mstream.h>
+
 // ----------------------------------------------------------------------------
 // wxMemoryInputStream
 // ----------------------------------------------------------------------------
 wxMemoryInputStream::wxMemoryInputStream(const char *data, size_t len)
   : wxInputStream()
 {
+/*
   m_i_streambuf->SetBufferIO((char*) data, (char*) (data+len));
   m_i_streambuf->SetIntPosition(0); // seek to start pos
   m_i_streambuf->Fixed(TRUE);
+*/
   m_length = len;
 }
 
@@ -42,7 +47,10 @@ wxMemoryInputStream::~wxMemoryInputStream()
 
 char wxMemoryInputStream::Peek()
 {
+/*
   return m_i_streambuf->GetBufferStart()[m_i_streambuf->GetIntPosition()];
+*/
+  return 0;
 }
 
 // ----------------------------------------------------------------------------
@@ -52,11 +60,15 @@ char wxMemoryInputStream::Peek()
 wxMemoryOutputStream::wxMemoryOutputStream(char *data, size_t len)
   : wxOutputStream()
 {
+/*
   if (data)
     m_o_streambuf->SetBufferIO(data, data+len);
   m_o_streambuf->Fixed(TRUE);
+*/
 }
 
 wxMemoryOutputStream::~wxMemoryOutputStream()
 {
 }
+
+#endif