开发者

Is __int32 defined?

开发者 https://www.devze.com 2022-12-16 19:46 出处:网络
gcc c89 I am c开发者_运维问答ame across this code. typedef __int32 int32_t; typedef unsigned __int32 uint32_t;

gcc c89

I am c开发者_运维问答ame across this code.

typedef __int32 int32_t;
typedef unsigned __int32 uint32_t;
typedef __int64 int64_t;
typedef unsigned __int32 uint64_t;

I am just wondering that is the __int32 I didn't think that was a type? Why the underscore?

Does this mean I could do things like this?

typedef __int32 myInt32;

Many thanks for any advice,


The type is not standard, but is supported on your compiler.

Symbols that begin with an underscore or contain two underscores are reserved by the standard for your compiler's implementation.

See Why do people use __(double underscore) so much in C++ (The question is about C++ but the reason is the same)

0

精彩评论

暂无评论...
验证码 换一张
取 消