]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/utilscmn.cpp
minor fix to find contents file alright
[wxWidgets.git] / src / common / utilscmn.cpp
index 68f0d945f5ad68ac5de33dfb1a08d60651020246..4b6e87cbce6b3cb833e1c02acf1973ef5c4d0cfe 100644 (file)
 #include "wx/textdlg.h"
 #endif
 
-#include "wx/ioswrap.h"
-
-#if wxUSE_IOSTREAMH
-    #include <fstream.h>
-#else
-    #include <fstream>
-#endif
-
 #include <ctype.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -901,3 +893,18 @@ wxString wxGetHostName()
     return buf;
 }
 
+wxString wxGetFullHostName()
+{
+    static const size_t hostnameSize = 257;
+
+    wxString buf;
+    bool ok = wxGetFullHostName(buf.GetWriteBuf(hostnameSize), hostnameSize);
+
+    buf.UngetWriteBuf();
+
+    if ( !ok )
+        buf.Empty();
+
+    return buf;
+}
+