]> git.saurik.com Git - wxWidgets.git/commitdiff
workarounds for Palm compiler errors (pacc-error.diff part of patch 1894861)
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 2 Mar 2008 01:16:14 +0000 (01:16 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 2 Mar 2008 01:16:14 +0000 (01:16 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52233 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/filefn.cpp
src/common/sysopt.cpp

index c23f02bf1c0416eeb467db1e4578212ad783ab63..f0bfce34c25dd07167778085d2f564052eb50398 100644 (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);
 
index 56227995c9edb0db31ea296cceddd7c61d1f258f..d27f46c726c392a80c58e1080827ce3e69c5b317 100644 (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)