X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bf85ddfc8a05c4d8306a1dc013bc2af7eccac00d..c437b3f4e47b74715a2f2385d4862972babd7802:/src/common/sysopt.cpp 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)