Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: what defines do I look for?



Peter O'Gorman [email@hidden] wrote:
> Define _DARWIN_ somewhere in the Makefile, or stick with _APPLE_...
> 
> Look at the output of
> cc -v -E /dev/null
> 
> to see what defines you have to play with.

Ahh, that helps, thanks.

Looking at them, perhaps it's better to do:

#if (defined(__APPLE__) && defined(__MACH__))

...it seems to be more likely to give me a "unique" classifier.
I was afraid that doing just __APPLE__ would match OS < X as well,
so I wanted to make sure I was specific enough.  =)

-- 
Ben Reed a.k.a. Ranger Rick (email@hidden)
http://defiance.dyndns.org/ / http://radio.scenespot.org/
...if humanoids eat chicken, then obviously they'd eat their own
species.  Otherwise they'd just be picking on the chickens. -- Kryten
_______________________________________________
unix-porting mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/unix-porting
Do not post admin requests to the list. They will be ignored.



References: 
 >what defines do I look for? (From: Benjamin Reed <email@hidden>)
 >Re: what defines do I look for? (From: "Peter O'Gorman" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.