且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

尽管有if语句,Visual Studio仍试图包括Linux标头

更新时间:2023-02-05 10:21:45

__ WINDOWS __ windows.h 定义.因此,您具有圆度.改用它:

__WINDOWS__ is defined by windows.h. So you have a circularity. Use this instead:

#if defined(_WIN32)
#   if defined(_WIN64)
        /*64 bit windows*/
#   else
        /*32 bit windows*/
#   endif
#endif

是的,_WIN32 是在64位窗口上定义的.我不骗你.

Yes, _WIN32 is defined on 64 bit windows. I kid you not.