当在源文件中增加

#ifdef xxxxx

#endif

注释了某一段代码,

不想在某个文件定义 #define xxxxx

可以在Makefile 编译选项中增加 CPPFLAGS += -Dxxxxx

或在MediaPlayer.pro文件中增加 DEFINES += xxxxxx

转载于:https://www.cnblogs.com/zuokong/p/4243305.html

更多推荐