lua-users home
lua-l archive

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


Surely a better approach is to correctly patch the source:

#if ANDROID
#define getlocaledecpoint() '.'
#elif !defined(getlocaledecpoint)
#define getlocaledecpoint() (localeconv()->decimal_point[0])
#endif

See:
http://stackoverflow.com/questions/6374523/how-to-detect-compilation-by-android-ndk-in-a-c-c-file

~
Doug.

On Mon, Aug 13, 2012 at 6:33 PM, Luiz Henrique de Figueiredo
<lhf@tecgraf.puc-rio.br> wrote:
>> -  ls->decpoint = getlocaledecpoint();
>> +  ls->decpoint = '.';
>
> Instead of patching the Lua source, add this at the end of luaconf.h:
>
> #define getlocaledecpoint() '.'
>
>