atom feed17 messages in com.googlegroups.android-ndkRe: Platform define: ANDROID or __AND...
FromSent OnAttachments
PeterSep 2, 2010 5:37 am 
Damien LespiauSep 2, 2010 9:47 am 
Angus LeesSep 2, 2010 8:42 pm 
PeterSep 3, 2010 12:21 am 
David TurnerSep 3, 2010 9:35 am 
PeterSep 6, 2010 12:05 am 
David TurnerSep 6, 2010 1:08 am 
PeterSep 6, 2010 5:18 am 
alanSep 6, 2010 8:34 am 
Doug SchaeferSep 6, 2010 8:51 am 
Tim MenschSep 6, 2010 12:35 pm 
Angus LeesSep 6, 2010 1:52 pm 
Doug SchaeferSep 6, 2010 2:46 pm 
Tim in BoulderSep 6, 2010 3:14 pm 
David TurnerSep 7, 2010 5:29 am 
mani krishnanFeb 23, 2013 1:10 am 
Jeffrey WaltonFeb 23, 2013 3:58 am 
Subject:Re: Platform define: ANDROID or __ANDROID__?
From:Damien Lespiau ("dam@gmail.com)
Date:Sep 2, 2010 9:47:35 am
List:com.googlegroups.android-ndk

On Thu, Sep 2, 2010 at 1:37 PM, Peter <pete@gmail.com> wrote:

Hi, in our multi-platform code (using CMake), I somehow only see

#ifdef __ANDROID__ #endif

but shouldn't it be

#ifdef ANDROID #endif

as I saw from the flags defined by the original NDK. What should we rely on in future, is ANDROID somewhat official?

With the 2.2 NDK, If you use ndk-build with V=1 you can see the actual gcc command line that defines -DANDROID.

Hopefully it does not change between the NDK versions :p