More WinCE mods
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21902 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1260,7 +1260,16 @@ WXDLLEXPORT int wxRename(const wxChar *oldpath, const wxChar *newpath)
|
||||
#ifndef wxAtof
|
||||
double WXDLLEXPORT wxAtof(const wxChar *psz)
|
||||
{
|
||||
return atof(wxConvLocal.cWX2MB(psz));
|
||||
#ifdef __WXWINCE__
|
||||
double d;
|
||||
wxString str(psz);
|
||||
if (str.ToDouble(& d))
|
||||
return d;
|
||||
else
|
||||
return 0.0;
|
||||
#else
|
||||
return atof(wxConvLocal.cWX2MB(psz));
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user