我想根据编译器类型有条件地编译代码的某些部分是否有任何宏?
像这样:
#if defined (COMPILER_TYPE e.g. GCC)
// Compile this
#elif defined (COMPILER_TYPE e.g. Visual Studio C Compiler)
// Else this
#endif
谢谢
我想根据编译器类型有条件地编译代码的某些部分是否有任何宏?
像这样:
#if defined (COMPILER_TYPE e.g. GCC)
// Compile this
#elif defined (COMPILER_TYPE e.g. Visual Studio C Compiler)
// Else this
#endif
谢谢