March 09, 2007
What version identifiers do you use if you need to check if you're on OS X?
March 09, 2007
torhu wrote:

> What version identifiers do you use if you need to check if you're on OS X?

Depends on which aspects of Mac OS X you are looking for, but you can use "version (darwin)" to check for the Kernel and BSD subsystem etc.

This might or might not include upper levels like Carbon and Cocoa,
but usually means Mac OS X now that OpenDarwin is pretty much dead.

http://www.prowiki.org/wiki4d/wiki.cgi?DocComments/Version#ExtraPredefinedVersions

--anders