A standard macro __STDC_VERSION__ is defined with value 199901L to indicate that C99 support is available #if __STDC_VERSION__ >= 199901L /*C99*/#else /*Not C99*/#endifC++ has a __cplusplus preprocessor define that lets you detect the version. Is there anything similar for C?Preferably I'd like it to be portable across XCode, GCC, and Visual Studio versions. 解决方案 As per article on Wikipedia on C99A standard macro __STDC_VERSION__ is defined with value 199901L to indicate that C99 support is available#if __STDC_VERSION__ >= 199901L /*C99*/#else /*Not C99*/#endif 这篇关于是否有预处理器宏可跨平台检测C99?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
10-23 07:28