开发者

What does '#if _LFS64_LARGEFILE-0' mean to CPP?

开发者 https://www.devze.com 2022-12-28 04:26 出处:网络
What does #if _LFS64_LARGEFILE-0 mean to the C Preprocessor for g++?Is that a minus zero or is that part of the sym开发者_高级运维bol?If it is minus zero, how does that affect whether the #if is trigg

What does #if _LFS64_LARGEFILE-0 mean to the C Preprocessor for g++? Is that a minus zero or is that part of the sym开发者_高级运维bol? If it is minus zero, how does that affect whether the #if is triggered?


That is a more robust version of:

#if _LFS64_LARGEFILE

i.e. that the code should be conditionally included if _LFS64_LARGEFILE has a true value.

Adding the - 0, prevents you from getting a warning (#if with no expression) when _LFS64_LARGEFILE is not defined.

0

精彩评论

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