mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-09-25 17:15:45 +08:00
Fix linking errors related to android_wcsto* functions.
This commit is contained in:
@@ -160,9 +160,9 @@
|
||||
|
||||
#ifdef __ANDROID__ // these functions are broken on android
|
||||
|
||||
extern double android_wcstod(const wchar_t *nptr, wchar_t **endptr);
|
||||
extern long android_wcstol(const wchar_t *nptr, wchar_t **endptr, int base);
|
||||
extern unsigned long android_wcstoul(const wchar_t *nptr, wchar_t **endptr, int base);
|
||||
WXDLLIMPEXP_BASE double android_wcstod(const wchar_t *nptr, wchar_t **endptr);
|
||||
WXDLLIMPEXP_BASE long android_wcstol(const wchar_t *nptr, wchar_t **endptr, int base);
|
||||
WXDLLIMPEXP_BASE unsigned long android_wcstoul(const wchar_t *nptr, wchar_t **endptr, int base);
|
||||
|
||||
#define wxCRT_StrtodW android_wcstod
|
||||
#define wxCRT_StrtolW android_wcstol
|
||||
|
||||
@@ -1219,21 +1219,21 @@ int wxVsscanf(const wxCStrData& str, const wchar_t *format, va_list ap)
|
||||
} \
|
||||
return d;
|
||||
|
||||
long android_wcstol(const wchar_t *nptr, wchar_t **endptr, int base)
|
||||
WXDLLEXPORT long android_wcstol(const wchar_t *nptr, wchar_t **endptr, int base)
|
||||
{
|
||||
ANDROID_WCSTO_START
|
||||
long d = strtol(dst, &dstendp, base);
|
||||
ANDROID_WCSTO_END
|
||||
}
|
||||
|
||||
unsigned long android_wcstoul(const wchar_t *nptr, wchar_t **endptr, int base)
|
||||
WXDLLEXPORT unsigned long android_wcstoul(const wchar_t *nptr, wchar_t **endptr, int base)
|
||||
{
|
||||
ANDROID_WCSTO_START
|
||||
unsigned long d = strtoul(dst, &dstendp, base);
|
||||
ANDROID_WCSTO_END
|
||||
}
|
||||
|
||||
double android_wcstod(const wchar_t *nptr, wchar_t **endptr)
|
||||
WXDLLEXPORT double android_wcstod(const wchar_t *nptr, wchar_t **endptr)
|
||||
{
|
||||
ANDROID_WCSTO_START
|
||||
double d = strtod(dst, &dstendp);
|
||||
|
||||
Reference in New Issue
Block a user