]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/utilscmn.cpp
Added size event for status bar
[wxWidgets.git] / src / common / utilscmn.cpp
index 2b2e7d65acda8e74db286f13cb65709bdf150f49..1488ca866c31987d44299d160ce9c6ad802b81a3 100644 (file)
 #include <sys/stat.h>
 #endif
 
+#ifdef __SALFORDC__
+#include <clib.h>
+#endif
+
 // Pattern matching code.
 // Yes, this path is deliberate (for Borland compilation)
 #ifdef wx_mac /* MATTHEW: [5] Mac doesn't like paths with "/" */
@@ -807,3 +811,41 @@ int        isascii( int c )
        return ( c >= 0 && c < 128 ) ;
 }
 #endif
+
+// Overloaded functions, taking a wxString
+bool wxGetHostName(wxString& name)
+{
+    bool success = wxGetHostName(wxBuffer, 500);
+    if (success)
+    {
+        name = wxBuffer;
+        return TRUE;
+    }
+    else
+        return FALSE;
+}
+
+bool wxGetUserId(wxString& buf)
+{
+    bool success = wxGetUserId(wxBuffer, 500);
+    if (success)
+    {
+        buf = wxBuffer;
+        return TRUE;
+    }
+    else
+        return FALSE;
+}
+
+bool wxGetUserName(wxString& buf)
+{
+    bool success = wxGetUserName(wxBuffer, 500);
+    if (success)
+    {
+        buf = wxBuffer;
+        return TRUE;
+    }
+    else
+        return FALSE;
+}
+