What's with “#ifdef _MAC” in Windows header files?

后端 未结 5 613
南方客
南方客 2021-02-07 07:36

I was browsing through Windows\'s Platform SDK header files (what a life, right?), and I noticed many places contained references to the preprocessor symbol _MAC. F

5条回答
  •  太阳男子
    2021-02-07 08:16

    I assume it is/was used for compiling Microsoft software (Office, IE, Windows Media Player) for MacOS. I know that IE and WMP for Solaris included a subset of Windows itself (e.g. libwinnt.so, libkernel32.so) as a direct replacement for the corresponding Windows DLLs.

提交回复
热议问题