[cfe-commits] r63982 - /cfe/trunk/lib/Headers/stdint.h

Chris Lattner clattner at apple.com
Sat Feb 7 14:21:55 PST 2009


On Feb 7, 2009, at 12:28 PM, Howard Hinnant wrote:

>>
>>
>> On Feb 6, 2009, at 3:57 PM, Sebastian Redl wrote:
>>
>>> Author: cornedbee
>>> Date: Fri Feb  6 17:57:52 2009
>>> New Revision: 63982
>>>
>>> URL: http://llvm.org/viewvc/llvm-project?rev=63982&view=rev
>>> Log:
>>> Fix some errors in the new stdint.h.
>
> The guards:
>
> #if !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS)
>
> and
>
> #if !defined(__cplusplus) || defined(__STDC_CONSTANT_MACROS)
>
> should also be removed.  They are non-normative in the C standard, and
> the C++ committee has decided that they didn't want them:

Very cool.  As a C++ programmer, this has always irritated me, and it  
didn't make sense that the *c* standard is commenting on C++.

Thanks Howard, fixed.

-Chris



More information about the cfe-commits mailing list