X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3be6aea994eedf64a709fc9c082d2e37ddab7f89..088117622c38b0cef9ab634ebc0987b839572e74:/src/unix/utilsunx.cpp diff --git a/src/unix/utilsunx.cpp b/src/unix/utilsunx.cpp index 445f88b9fa..59fb259624 100644 --- a/src/unix/utilsunx.cpp +++ b/src/unix/utilsunx.cpp @@ -44,7 +44,11 @@ #include #define statfs statvfs +# ifdef __HPUX__ + #define wxStatFs struct statvfs +# else #define wxStatFs statvfs_t +# endif #elif HAVE_STATFS #define wxStatFs struct statfs #endif // HAVE_STAT[V]FS @@ -362,10 +366,10 @@ public: bool IsOpened() const { return !Eof(); } // return TRUE if we have anything to read, don't block - bool IsAvailable() const; + virtual bool CanRead() const; }; -bool wxPipeInputStream::IsAvailable() const +bool wxPipeInputStream::CanRead() const { if ( m_lasterror == wxSTREAM_EOF ) return FALSE; @@ -800,7 +804,12 @@ char *wxGetUserHome( const wxString &user ) if ((ptr = wxGetenv(wxT("HOME"))) != NULL) { +#if wxUSE_UNICODE + wxWCharBuffer buffer( ptr ); + return buffer; +#else return ptr; +#endif } if ((ptr = wxGetenv(wxT("USER"))) != NULL || (ptr = wxGetenv(wxT("LOGNAME"))) != NULL) { @@ -947,7 +956,7 @@ wxString wxGetOsDescription() #ifndef WXWIN_OS_DESCRIPTION #error WXWIN_OS_DESCRIPTION should be defined in config.h by configure #else - return WXWIN_OS_DESCRIPTION; + return wxString::FromAscii( WXWIN_OS_DESCRIPTION ); #endif } #endif