Is there a predefined C macro for detecting the version of OS X? I know __APPLE__ and __MACH__ exist, but those are binary. Is there a specific val
__APPLE__
__MACH__
The Availability.h macros allow you to check for compile- and run-time version dependencies. See the discussion here.
Availability.h