我想在代码中添加编译器指令说,如果我们用mingw编译,那么不要考虑这段代码。
例如:
#ifdef _MINGW32_ //if this defined then don't compile the code
int x;
code....
#endif
是否可以?怎么做?
我想在代码中添加编译器指令说,如果我们用mingw编译,那么不要考虑这段代码。
例如:
#ifdef _MINGW32_ //if this defined then don't compile the code
int x;
code....
#endif
是否可以?怎么做?