Which macro to wrap Mac OS X specific code in C/C++

后端 未结 6 1714
悲哀的现实
悲哀的现实 2020-12-13 03:32

While reading various C and C++ sources, I have encountered two macros __APPLE__ and __OSX__. I found plenty of use of __OSX__ in vari

6条回答
  •  执念已碎
    2020-12-13 04:29

    Here is a nice list of macros for operating systems.

    There's little info on __OSX__ on the web. You'll be safe with __APPLE__.

提交回复
热议问题