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

Howard Hinnant hhinnant at apple.com
Sat Feb 7 12:28:15 PST 2009


>
>
> 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:

http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2800.pdf

18.3.1 Header <cstdint> synopsis [cstdint.syn], paragraph 2:

> The header defines all functions, types, and macros the same as C99  
> 7.18. [ Note: The macros defined by
> <stdint> are provided unconditionally. In particular, the symbols  
> __STDC_LIMIT_MACROS and __STDC_-
> CONSTANT_MACROS (mentioned in C99 footnotes 219, 220, and 222) play  
> no role in C++. — end note ]

-Howard





More information about the cfe-commits mailing list