Which macro to wrap Mac OS X specific code in C/C++
It all depends. Each macro specifies something different in meaning. See: https://developer.apple.com/library/mac/documentation/Porting/Conceptual/PortingUnix/compiling/compiling.html#//apple_ref/doc/uid/TP40002850-SW13 __APPLE__ This macro is defined in any Apple computer. __APPLE_CC__ This macro is set to an integer that represents the version number of the compiler. This lets you distinguish, for example, between compilers based on the same version of GCC, but with different … Read more