While reading various C and C++ sources, I have encountered two macros __APPLE__ and __OSX__. I found plenty of use of __OSX__ in vari
__APPLE__
__OSX__
I normally use __MACH__ for this. It's been defined since the earliest version of OS X (and even before, presumably).
__MACH__