Add lconv declaration and localeconv(3)
lconv is taken from ndk/sources/android/support/include/locale.h and matches bsd/glibc upstream. Keep old declaration for 32-bits for compatibility. localeconv.c and deps are taken from openbsd upstream. Changed strtod.c accordingly. Change-Id: I9fcc4d15f5674d192950d80edf26f36006cd31b4 Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
This commit is contained in:

committed by
Calin Juravle

parent
a58b3f78e1
commit
50282f72bb
@@ -1332,13 +1332,14 @@ strtod
|
||||
Bigint *bb1, *bd0;
|
||||
Bigint *bb = NULL, *bd = NULL, *bs = NULL, *delta = NULL;/* pacify gcc */
|
||||
|
||||
CONST char decimal_point = '.';
|
||||
#if 0 /* BEGIN android-changed: no localeconv. */
|
||||
#if defined(__LP64__) /* BEGIN android-changed: no localeconv for ILP32. */
|
||||
#ifndef KR_headers
|
||||
CONST char decimal_point = localeconv()->decimal_point[0];
|
||||
#else
|
||||
CONST char decimal_point = '.';
|
||||
#endif
|
||||
#else
|
||||
CONST char decimal_point = '.';
|
||||
#endif /* END android-changed */
|
||||
|
||||
sign = nz0 = nz = 0;
|
||||
|
Reference in New Issue
Block a user