[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: 5.2 on android
- From: Doug <douglas.linder@...>
- Date: Mon, 13 Aug 2012 20:51:56 +0800
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() '.'
>
>