X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/feb6cde446a73ac2fe9ea0528d6c6eb16cc040fd..9ac71bef070f553f4ecef2c549dba33b10422f06:/src/common/process.cpp diff --git a/src/common/process.cpp b/src/common/process.cpp index 7c23c47620..0e9769d95e 100644 --- a/src/common/process.cpp +++ b/src/common/process.cpp @@ -120,6 +120,28 @@ void wxProcess::SetPipeStreams(wxInputStream *inputSstream, m_outputStream = outputStream; } +// these are implemented in platform-dependent (and correct!) way under MSW and +// Unix but we still have to provide these dummy versions for the other +// platforms here +#if !defined(__WIN32__) && !defined(__UNIX_LIKE__) + +bool wxProcess::IsInputOpened() const +{ + return m_inputStream != NULL; +} + +bool wxProcess::IsInputAvailable() const +{ + return m_inputStream && !m_inputStream->Eof(); +} + +bool wxProcess::IsErrorAvailable() const +{ + return m_errorStream && !m_errorStream->Eof(); +} + +#endif // !Win32 && !Unix + #endif // wxUSE_STREAMS // ----------------------------------------------------------------------------