defined to atof in non-Unicode mode.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2120
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#define wxVsprintf _vstprintf
// stdlib.h functions
#define wxVsprintf _vstprintf
// stdlib.h functions
-#define wxAtof(s) atof(wxString(s).mb_str())
+#if !wxUSE_UNICODE
+#define wxAtof atof
+#endif
#define wxAtoi _ttoi
#define wxAtol _ttol
#define wxGetenv _tgetenv
#define wxAtoi _ttoi
#define wxAtol _ttol
#define wxGetenv _tgetenv
int WXDLLEXPORT wxVsprintf(wxChar *buf, const wxChar *fmt, va_list argptr);
#endif
int WXDLLEXPORT wxVsprintf(wxChar *buf, const wxChar *fmt, va_list argptr);
#endif
-#ifdef wxNEED_WX_STDLIB_H
double WXDLLEXPORT wxAtof(const wxChar *psz);
double WXDLLEXPORT wxAtof(const wxChar *psz);
+#endif
+
+#ifdef wxNEED_WX_STDLIB_H
int WXDLLEXPORT wxAtoi(const wxChar *psz);
long WXDLLEXPORT wxAtol(const wxChar *psz);
wxChar * WXDLLEXPORT wxGetenv(const wxChar *name);
int WXDLLEXPORT wxAtoi(const wxChar *psz);
long WXDLLEXPORT wxAtol(const wxChar *psz);
wxChar * WXDLLEXPORT wxGetenv(const wxChar *name);