X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/03647350fc7cd141953c72e0284e928847d30f44..e91e1e3d5cab263883c1cee1689c898b8f7c4ecd:/include/wx/xlocale.h diff --git a/include/wx/xlocale.h b/include/wx/xlocale.h index 936e3fc39e..6a01ad311a 100644 --- a/include/wx/xlocale.h +++ b/include/wx/xlocale.h @@ -3,7 +3,6 @@ // Purpose: Header to provide some xlocale wrappers // Author: Brian Vanderburg II, Vadim Zeitlin // Created: 2008-01-07 -// RCS-ID: $Id$ // Copyright: (c) 2008 Brian Vanderburg II // 2008 Vadim Zeitlin // Licence: wxWindows licence @@ -302,8 +301,14 @@ extern WXDLLIMPEXP_DATA_BASE(wxXLocale) wxNullXLocale; { return wxCRT_Strtol_lW(c, endptr, base, loc.Get()); } inline unsigned long wxStrtoul_l(const wchar_t *c, wchar_t **endptr, int base, const wxXLocale& loc) { return wxCRT_Strtoul_lW(c, endptr, base, loc.Get()); } - - #endif // wxUSE_UNICDE (ctype functions) + #else // !wxUSE_UNICODE + inline double wxStrtod_l(const char *c, char **endptr, const wxXLocale& loc) + { return wxCRT_Strtod_lA(c, endptr, loc.Get()); } + inline long wxStrtol_l(const char *c, char **endptr, int base, const wxXLocale& loc) + { return wxCRT_Strtol_lA(c, endptr, base, loc.Get()); } + inline unsigned long wxStrtoul_l(const char *c, char **endptr, int base, const wxXLocale& loc) + { return wxCRT_Strtoul_lA(c, endptr, base, loc.Get()); } + #endif // wxUSE_UNICODE #else // !wxHAS_XLOCALE_SUPPORT // ctype functions int WXDLLIMPEXP_BASE wxIsalnum_l(const wxUniChar& c, const wxXLocale& loc);