Analog to __IPHONE_8_0 for OS X 10.10

2019-09-09 12:47发布

问题:

What's the analog to #ifdef __IPHONE_8_0 for OS X 10.10?

I've RTM/STFI, enough at least.

回答1:

#ifdef __MAC_10_10

The #defines for the OS versions are in Availability.h.