Subject: Re: Update ares_init.c for IOS device

Re: Update ares_init.c for IOS device

From: David Drysdale <drysdale_at_google.com>
Date: Fri, 5 Dec 2014 13:19:43 +0000

Well, an OSX build still seems to work with that patch, but I can't comment
about the iOS build. Anyone else able to look that over?

(Small nit btw -- there's trailing whitespace in the patch)

On Mon, Dec 1, 2014 at 11:33 AM, Yury Kirpichev <ykirpichev_at_gmail.com>
wrote:

> 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-05