How to prevent macro redefinition

前端 未结 5 476
陌清茗
陌清茗 2021-01-17 09:51

After working some time on my project, this warning begins to appear:

2>Game.cpp
2>c:\\program files\\microsoft sdks\\windows\\v6.0a\\include\\windef.h         


        
5条回答
  •  爱一瞬间的悲伤
    2021-01-17 10:20

    Microsoft doesn't generally design headers to be free-standing. Most of the Windows-oriented headers require that you have first included . Except for the dependency on that Mother Of All Headers, usually there are no specific header dependencies so by including first you shouldn't have any problem.

提交回复
热议问题