]> git.saurik.com Git - wxWidgets.git/commitdiff
compilation fixes for separate build
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 26 Jun 2003 01:14:22 +0000 (01:14 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 26 Jun 2003 01:14:22 +0000 (01:14 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21420 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/unix/pipe.h
src/common/execcmn.cpp
src/unix/utilsunx.cpp

index 93257ea4565abfa5ec97732ca39657a613008f64..972113ae368efe33a96e401e42dee6dccd9319d0 100644 (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_
 
index d0566651e533d96e051784b760521dfa4ca96f37..a2828420905a9efc04705907ca2a079a96245340 100644 (file)
@@ -81,6 +81,7 @@ inline void wxStreamTempInputBuffer::Init(wxPipeInputStream *stream)
     m_stream = stream;
 }
 
+inline
 void wxStreamTempInputBuffer::Update()
 {
     if ( m_stream && m_stream->CanRead() )
@@ -104,6 +105,7 @@ void wxStreamTempInputBuffer::Update()
     }
 }
 
+inline
 wxStreamTempInputBuffer::~wxStreamTempInputBuffer()
 {
     if ( m_buffer )
index 2f15a8cb268c60c4a02a9b3272f776330c1ccc83..f216487e983816154590c0a000f1a43ebee5586d 100644 (file)
 
 #include "wx/unix/execute.h"
 
+#if wxUSE_STREAMS
+
+// define this to let wxexec.cpp know that we know what we're doing
+#define _WX_USED_BY_WXEXECUTE_
+#include "../common/execcmn.cpp"
+
+#endif // wxUSE_STREAMS
+
 #ifdef __WXBASE__
 
 #if defined( __MWERKS__ ) && defined(__MACH__)
@@ -347,22 +355,6 @@ bool wxShutdown(wxShutdownFlags wFlags)
 
 #if wxUSE_STREAMS
 
-// ----------------------------------------------------------------------------
-// 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;
-};
-
 bool wxPipeInputStream::CanRead() const
 {
     if ( m_lasterror == wxSTREAM_EOF )
@@ -399,10 +391,6 @@ bool wxPipeInputStream::CanRead() const
     }
 }
 
-// define this to let wxexec.cpp know that we know what we're doing
-#define _WX_USED_BY_WXEXECUTE_
-#include "../common/execcmn.cpp"
-
 #endif // wxUSE_STREAMS
 
 // ----------------------------------------------------------------------------