X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/75ed1d15d0d866cac78f7c0da176db8dd5288bc8..5526e819eca4465ed5520d49bccfebc6a28045e0:/include/wx/mstream.h diff --git a/include/wx/mstream.h b/include/wx/mstream.h index c25fc94a85..1c3283e779 100644 --- a/include/wx/mstream.h +++ b/include/wx/mstream.h @@ -13,10 +13,16 @@ #include +#if wxUSE_STREAMS + class wxMemoryInputStream: public wxInputStream { + private: + size_t m_length; + public: wxMemoryInputStream(const char *data, size_t length); virtual ~wxMemoryInputStream(); + virtual size_t StreamSize() const { return m_length; } char Peek(); }; @@ -27,10 +33,8 @@ class wxMemoryOutputStream: public wxOutputStream { virtual ~wxMemoryOutputStream(); }; -class wxMemoryStream: public wxMemoryInputStream, public wxMemoryOutputStream { - public: - wxMemoryStream(char *data = NULL, size_t length = 0); - virtual ~wxMemoryStream(); -}; +#endif + // wxUSE_STREAMS #endif + // _WX_WXMMSTREAM_H__ \ No newline at end of file