]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/process.cpp
Compile fix for prop.
[wxWidgets.git] / src / common / process.cpp
index 7c23c4762076117016c77d6cfdeefef5097bdd95..0e9769d95e62a78a350953cf83a6a9fbeb9bfb45 100644 (file)
@@ -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
 
 // ----------------------------------------------------------------------------