lua-users home
lua-l archive

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


Wait my bad, I should have read that more carefully. Indeed,
__ANDROID__ is the compiler macro, and -DANDROID is the compile flag
(and does NOT work if you invoke the compiler manually with out
calling the build helper makefiles).

~
Doug.

On Mon, Aug 13, 2012 at 9:36 PM, Doug <douglas.linder@gmail.com> wrote:
> Fair enough. luaconf.h it is then~
>
> Also; any of the above really (#ifdef ANDROID, #if ANDROID, #ifdef
> __ANDROID__, #if ANDROID || __ANDROID__) take your pick, they all
> work.
>
> ~
> Doug.
>
> On Mon, Aug 13, 2012 at 9:04 PM, Patrick Rapin <toupie300@gmail.com> wrote:
>>> #if ANDROID
>>
>> Well, according to your Stackoverflow linked page, it should in fact be:
>>
>> #ifdef __ANDROID__
>>
>> And, as Luiz already pointed out, placed in luaconf.h instead of llex.c
>>