Where is WIN32 defined, and how can I include this definition in my project?

后端 未结 6 1000
逝去的感伤
逝去的感伤 2021-01-11 21:06

I am including a third party header and source file into my project.

At the top of the header there is this:

#if defined(WIN32) || defined(WIN16)
#i         


        
6条回答
  •  囚心锁ツ
    2021-01-11 21:18

    Depends on your project setup. WIN32 is defined inside the windows header files, but you can pass it to the compiler as well ("-DWIN32" for gcc for example). Try it and see whether it compiles.

提交回复
热议问题