From: Guillermo Rodriguez Garcia Date: Sat, 18 Mar 2000 16:48:02 +0000 (+0000) Subject: Had to #ifdef out all the new wxGetFullHostName code as it breaks all X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/90cfeaab3f8b5f3e9aaa4dd292a3bce49d6cae4d 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 --- diff --git a/src/msw/utils.cpp b/src/msw/utils.cpp index 56413e0523..ab922173c2 100644 --- a/src/msw/utils.cpp +++ b/src/msw/utils.cpp @@ -178,6 +178,9 @@ bool wxGetHostName(wxChar *buf, int maxSize) // get full hostname (with domain name if possible) bool wxGetFullHostName(wxChar *buf, int maxSize) { +// This breaks _at least_ mingw!! +#if 0 + #if defined(__WIN32__) && !defined(__TWIN32__) // TODO should use GetComputerNameEx() when available WSADATA wsa; @@ -217,6 +220,8 @@ bool wxGetFullHostName(wxChar *buf, int maxSize) } #endif // Win32 +#endif // 0 + return wxGetHostName(buf, maxSize); } @@ -584,7 +589,7 @@ int wxGetOsVersion(int *majorVsn, int *minorVsn) *majorVsn = info.dwMajorVersion; if (minorVsn) *minorVsn = info.dwMinorVersion; - + switch ( info.dwPlatformId ) { case VER_PLATFORM_WIN32s: