diff --git a/src/common/filefn.cpp b/src/common/filefn.cpp index c23f02bf1c..f0bfce34c2 100644 --- a/src/common/filefn.cpp +++ b/src/common/filefn.cpp @@ -1373,7 +1373,12 @@ wxChar *wxGetTempFileName(const wxString& prefix, wxChar *buf) return NULL; if ( buf ) +#ifdef _PACC_VER + // work around the PalmOS pacc compiler bug + wxStrcpy(buf, filename.data()); +#else wxStrcpy(buf, filename); +#endif else buf = MYcopystring(filename); diff --git a/src/common/sysopt.cpp b/src/common/sysopt.cpp index 56227995c9..d27f46c726 100644 --- a/src/common/sysopt.cpp +++ b/src/common/sysopt.cpp @@ -100,7 +100,12 @@ wxString wxSystemOptions::GetOption(const wxString& name) int wxSystemOptions::GetOptionInt(const wxString& name) { - return wxAtoi(GetOption(name)); +#ifdef _PACC_VER + // work around the PalmOS pacc compiler bug + return wxAtoi (GetOption(name).data()); +#else + return wxAtoi (GetOption(name)); +#endif } bool wxSystemOptions::HasOption(const wxString& name)