C macro for OS X version (Lion or not) detection?

后端 未结 2 618
无人及你
无人及你 2020-12-20 17:43

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

2条回答
  •  情书的邮戳
    2020-12-20 18:09

    The Availability.h macros allow you to check for compile- and run-time version dependencies. See the discussion here.

提交回复
热议问题