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:
parent
f0d3a2cc93
commit
fcb9fb91ff
@ -1373,7 +1373,12 @@ wxChar *wxGetTempFileName(const wxString& prefix, wxChar *buf)
|
|||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
if ( buf )
|
if ( buf )
|
||||||
|
#ifdef _PACC_VER
|
||||||
|
// work around the PalmOS pacc compiler bug
|
||||||
|
wxStrcpy(buf, filename.data());
|
||||||
|
#else
|
||||||
wxStrcpy(buf, filename);
|
wxStrcpy(buf, filename);
|
||||||
|
#endif
|
||||||
else
|
else
|
||||||
buf = MYcopystring(filename);
|
buf = MYcopystring(filename);
|
||||||
|
|
||||||
|
@ -100,7 +100,12 @@ wxString wxSystemOptions::GetOption(const wxString& name)
|
|||||||
|
|
||||||
int wxSystemOptions::GetOptionInt(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)
|
bool wxSystemOptions::HasOption(const wxString& name)
|
||||||
|
Loading…
Reference in New Issue
Block a user