]> git.saurik.com Git - wxWidgets.git/blobdiff - src/palmos/utils.cpp
added setup.h file containing the settings common to all ports and a script to update...
[wxWidgets.git] / src / palmos / utils.cpp
index 71db0375514c5e2f5339e38f361db82cc8c0a60b..e32477f327e8d9c2ceb286adc89cf2192b92b3b9 100644 (file)
@@ -4,7 +4,7 @@
 // Author:      William Osborne
 // Modified by:
 // Created:     10/13/04
-// RCS-ID:      $Id: 
+// RCS-ID:      $Id:
 // Copyright:   (c) William Osborne
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
@@ -90,7 +90,7 @@ bool wxGetUserName(wxChar *buf, int maxSize)
 
     wxStrncpy (buf, wxConvertMB2WX(id), maxSize - 1);
 
-    // free the buffer 
+    // free the buffer
     MemPtrUnlock(id);
 
     return true;
@@ -156,7 +156,7 @@ bool wxShutdown(wxShutdownFlags wFlags)
 // ----------------------------------------------------------------------------
 
 // Get free memory in bytes, or -1 if cannot determine amount (e.g. on UNIX)
-long wxGetFreeMemory()
+wxMemorySize wxGetFreeMemory()
 {
     uint32_t freeTotal = 0;
     uint32_t freeHeap;
@@ -171,7 +171,7 @@ long wxGetFreeMemory()
         freeTotal+=freeHeap;
     }
 
-    return freeTotal;
+    return (wxMemorySize)freeTotal;
 }
 
 unsigned long wxGetProcessId()
@@ -244,8 +244,6 @@ extern long wxCharsetToCodepage(const wxChar *name)
 
 #else // !wxUSE_FONTMAP
 
-#include "wx/palmos/registry.h"
-
 // this should work if Internet Exploiter is installed
 extern long wxCharsetToCodepage(const wxChar *name)
 {