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

后端 未结 5 619
南方客
南方客 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:20

    As you can see in Windows.h header file, macro _MAC is defined as follows:

    #if defined(_68K_) || defined(_MPPC_)
    #define _MAC
    #endif
    #endif
    

    So, yes, it is defined only for old macOS environment (before it started to use intel processors)

提交回复
热议问题