Subject: Re: Update ares_init.c for IOS device

Re: Update ares_init.c for IOS device

From: Yury Kirpichev <ykirpichev_at_gmail.com>
Date: Mon, 1 Dec 2014 15:33:44 +0400

Yes, it seems you are right about TARGET_OS_IPHONE and it will be always
defined when TargetConditionals.h is included.
So, correct way is to check #if TARGET_OS_IPHONE == 1
Here is updated patch.

2014-12-01 13:34 GMT+03:00 David Drysdale <drysdale_at_google.com>:

> Quick question -- what happens with the various #ifdef
> TARGET_OS_IPHONE directives on Mac OSX? From a quick search it sounds
> like TARGET_OS_IPHONE will be defined on OSX, just to zero (i.e. the
> advice seems to be to use #if TARGET_OS_IPHONE not #ifdef).
>
> (Apologies if it's a dumb question -- I'm not that familiar with
> either platform).
>
> Thanks,
> David
>
> On Sun, Nov 30, 2014 at 12:41 PM, Yury Kirpichev <ykirpichev_at_gmail.com>
> wrote:
> > Hi,
> >
> > Here is a patch which make it possible to use c-are on device with IOS.
> >
> > BR/ Yury
>

Received on 2014-12-01