难道微软的Visual Studio 2010支持C99? [英] Does Microsoft visual studio 2010 support c99?
本文介绍了难道微软的Visual Studio 2010支持C99?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道,如果微软的Visual Studio 2010支持C99。如果没有,我怎么可以使用标准的类型,如使用intptr_t
和 uintptr_t形式
?
I would like to know if Microsoft Visual Studio 2010 supports C99. If not, how can I use the standard types like intptr_t
and uintptr_t
?
推荐答案
据我所知,Visual Studio 2010中不支持C99。要使用类型,如使用intptr_t,你将不得不使用一个typedef。一个跨平台的方式做到这将是:
As far as I can tell, Visual Studio 2010 does not support C99. To use types like intptr_t, you will have to use a typedef. A cross-platform way to do this would be:
#ifdef _WIN32
typedef signed short intptr_t
#else
#include <stdint.h>
#endif
也看到这个了这个问题:
对于的Visual Studio支持新的C / C ++标准?
这篇关于难道微软的Visual Studio 2010支持C99?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文