cURL / Mailing Lists / curl-library / Single Mail


Re: [PATCH] curl.h: add __ANDROID__ macro check

From: Dan Fandrich <>
Date: Tue, 20 Dec 2011 10:05:41 -0800

On Tue, Dec 20, 2011 at 02:11:04PM +0100, Cédric Deltheil wrote:
> I would say we really need to check both since I've observed that:
> * if you use file(s) and the 'ndk-build' script (aka vanilla way),
> ANDROID is predefined (see -DANDROID extra C flag),
> * if you use the Android Standalone Toolchain, then __ANDROID__ is predefined
> as stated by the compiler:

This has been my experience as well. It doesn't make sense to me, either, but
that's how it seems to be done. I've only ever compiled it as part of a
full Android build using, and then only ANDROID is predefined.

>>> Dan
List admin:
Received on 2011-12-20