Had to #ifdef out all the new wxGetFullHostName code as it breaks all

the samples and apps _at least_ under mingw (and I think it will also
cause other problems). Sorry, will have to wait for 2.1.14 to be released
before this can be properly fixed.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6825 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Guillermo Rodriguez Garcia
2000-03-18 16:48:02 +00:00
parent 2d027cfa88
commit 90cfeaab3f

View File

@@ -178,6 +178,9 @@ bool wxGetHostName(wxChar *buf, int maxSize)
// get full hostname (with domain name if possible) // get full hostname (with domain name if possible)
bool wxGetFullHostName(wxChar *buf, int maxSize) bool wxGetFullHostName(wxChar *buf, int maxSize)
{ {
// This breaks _at least_ mingw!!
#if 0
#if defined(__WIN32__) && !defined(__TWIN32__) #if defined(__WIN32__) && !defined(__TWIN32__)
// TODO should use GetComputerNameEx() when available // TODO should use GetComputerNameEx() when available
WSADATA wsa; WSADATA wsa;
@@ -217,6 +220,8 @@ bool wxGetFullHostName(wxChar *buf, int maxSize)
} }
#endif // Win32 #endif // Win32
#endif // 0
return wxGetHostName(buf, maxSize); return wxGetHostName(buf, maxSize);
} }