cURL / Mailing Lists / curl-library / Single Mail

curl-library

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

From: Dan Fandrich <dan_at_coneharvesters.com>
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 Android.mk 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 Android.mk, and then only ANDROID is predefined.

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-12-20