]> git.saurik.com Git - wxWidgets.git/commitdiff
Had to #ifdef out all the new wxGetFullHostName code as it breaks all
authorGuillermo Rodriguez Garcia <guille@iies.es>
Sat, 18 Mar 2000 16:48:02 +0000 (16:48 +0000)
committerGuillermo Rodriguez Garcia <guille@iies.es>
Sat, 18 Mar 2000 16:48:02 +0000 (16:48 +0000)
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

src/msw/utils.cpp

index 56413e05239df44eece9145af9a1d9fc4b9029c6..ab922173c2b502dda360693428fb675f1e45cd30 100644 (file)
@@ -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: