]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/utilscmn.cpp
Changed a few true -> TRUE
[wxWidgets.git] / src / common / utilscmn.cpp
index 68f0d945f5ad68ac5de33dfb1a08d60651020246..1dffad113ce7d656c7e24408c302a4437ee42d8f 100644 (file)
@@ -901,3 +901,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;
+}
+