workarounds for Palm compiler errors (pacc-error.diff part of patch 1894861)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52233 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2008-03-02 01:16:14 +00:00
parent f0d3a2cc93
commit fcb9fb91ff
2 changed files with 11 additions and 1 deletions

View File

@ -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);

View File

@ -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)