#include <SystemMgr.h> // SysDoze()...
#include <SysUtils.h>
-#ifdef defined (__WXPALMOS6__)
+#ifdef __WXPALMOS6__
extern void SysReset (void);
extern UInt32 SysTaskID (void);
#endif
return false;
}
- wxStrncpy (buf, wxSafeConvertMB2WX(id), maxSize - 1);
+ wxStrlcpy(buf, wxSafeConvertMB2WX(id), maxSize);
// free the buffer
MemPtrUnlock(id);
switch (wFlags) {
case wxSHUTDOWN_POWEROFF:
// TODO: turn off lamps
-#ifdef defined (__WXPALMOS6__)
+#ifdef __WXPALMOS6__
//extern void SysReset (void);
//extern UInt32 SysTaskID (void);
#define SysReset()
wxString wxGetOsDescription()
{
- wxString strOS = _T("PalmOS");
+ wxString strOS = wxT("PalmOS");
//err = FtrGet(sysFtrCreator, sysFtrNumROMVersion, &romVersion);
//if (romVersion >= 0x02000000) v20 = true;