So it's the other way around than i thought.
Because a file compiled with the official NDK toolchain only defines -
DANDROID, not -D__ANDROID__. Or am I missing the __ANDROID__ just
because you don't see it in the commandline, it's defined in the GCC
internally as already Angus mentioned?
I actually never checked that, will test it with a hello world :)
On 3 Sep., 18:35, David Turner <di....@android.com> wrote:
__ANDROID__ should be the official one, but some ANDROID crept in the
I'm not sure it's totally necessary to rely on ANDROID, we may remove that
from future NDK releases.
__ANDROID__ shall always be defined by the toolchain, without a need for
special flags though, so please rely on that instead in your code.