lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> lua5.2.1 's llex.c:214 can not compile by android ndk.
> because i see ndk's locale.h, lconv do not have decimal_point, i think
> is it not portable code.
> 
> #if 1 /* MISSING FROM BIONIC - DEFINED TO MAKE libstdc++-v3 happy */
> struct lconv { };
> struct lconv *localeconv(void);
> #endif /* MISSING */

The decimal_point field in struct lconv is part of the ANSI standard,
so the Android NDK is not following the standard.

Anyway, you can bypass this problem defining the macro getlocaledecpoint.
Add something like this to luaconf.h:

#define getlocaledecpoint()	('.')


-- Roberto