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

后端 未结 6 1038
逝去的感伤
逝去的感伤 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:13

    Check your includes. I am guessing that the third party header is included prior to the windows.h. So, in your main.cpp or equal it should be

    #include  // this will also include windefs.h
    #include 
    

    and not the other way around.

    Hope that helps.

提交回复
热议问题