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?



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.

Peter

On Tuesday, March 12, 2002, at 11:18  PM, Benjamin Reed wrote:


When I've got to add an OSX-specific patch to something, what should I use as the cpp check to uniquely identify it. I've been using:

#if (defined(__APPLE__) && defined(__DYNAMIC__))

...which I got from another package, and it seems to work, but it
doesn't sound "right". Are there other defines provided by the compiler
that would make more sense? (like a __DARWIN__ define or something?)
_______________________________________________
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>)



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.