compilation fixes for separate build

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21420 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-06-26 01:14:22 +00:00
parent d6045bb81d
commit 2887179b1f
3 changed files with 32 additions and 20 deletions

View File

@@ -94,5 +94,27 @@ private:
int m_fds[2];
};
#if wxUSE_STREAMS
#include "wx/wfstream.h"
// ----------------------------------------------------------------------------
// wxPipeInputStream: stream for reading from a pipe
// ----------------------------------------------------------------------------
class wxPipeInputStream : public wxFileInputStream
{
public:
wxPipeInputStream(int fd) : wxFileInputStream(fd) { }
// return TRUE if the pipe is still opened
bool IsOpened() const { return !Eof(); }
// return TRUE if we have anything to read, don't block
virtual bool CanRead() const;
};
#endif // wxUSE_STREAMS
#endif // _WX_UNIX_PIPE_H_