在Solution Explorer中鼠标右键点击其project之后,Configuration(Release)->Configuration Propertity ->C++ ->Preprocessor ->Preprocessor Definitions在此处增加你想要的宏。
在visual studio工程设置中增加宏定义的方法
原文:https://www.cnblogs.com/sinceret/p/11400017.html