]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/utilscmn.cpp
Whole lot of stuff for new wxFileDialog
[wxWidgets.git] / src / common / utilscmn.cpp
index 68f0d945f5ad68ac5de33dfb1a08d60651020246..08eed2a299b45a68c5579d139c8a822df147c7d9 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>
@@ -185,6 +177,10 @@ extern "C"
 #endif
 #endif  /* __WXMSW__ */
 
+#ifdef __WXPM__
+#define strcasecmp stricmp
+#define strncasecmp strnicmp
+#endif
 
 wxChar *
 copystring (const wxChar *s)
@@ -901,3 +897,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;
+}
+