Mailing Lists: Apple Mailing Lists

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

what defines do I look for?



Just a quick question...

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?)

-- 
Benjamin Reed a.k.a. Ranger Rick (email@hidden) http://ranger.befunk.com/
...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.





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.