1. the common helper functions are now in src/unix/utilsunx.cpp
2. POSIX threads are in src/unix/threadpsx.cpp 3. some more functions are detected using configure and not guessed from the platform type git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1867 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -801,19 +801,6 @@ int isascii( int c )
|
||||
}
|
||||
#endif
|
||||
|
||||
// Overloaded functions, taking a wxString
|
||||
bool wxGetHostName(wxString& name)
|
||||
{
|
||||
bool success = wxGetHostName(wxBuffer, 500);
|
||||
if (success)
|
||||
{
|
||||
name = wxBuffer;
|
||||
return TRUE;
|
||||
}
|
||||
else
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
bool wxGetUserId(wxString& buf)
|
||||
{
|
||||
bool success = wxGetUserId(wxBuffer, 500);
|
||||
@@ -838,3 +825,13 @@ bool wxGetUserName(wxString& buf)
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
bool wxGetHostName(wxString& buf)
|
||||
{
|
||||
static const size_t hostnameSize = 257;
|
||||
bool ok = wxGetHostName(buf.GetWriteBuf(hostnameSize), hostnameSize);
|
||||
|
||||
buf.UngetWriteBuf();
|
||||
|
||||
return ok;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user