merged 2.4 branch into the trunk
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18040 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -44,7 +44,11 @@
|
||||
#include <sys/statvfs.h>
|
||||
|
||||
#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
|
||||
|
Reference in New Issue
Block a user