[cfe-dev] Predefined stdint macros (i.e. __UINT8_TYPE__, etc.)

Ben Smith binji at chromium.org
Wed Jun 11 12:10:20 PDT 2014


Hello cfe-dev,

Clang defines a subset of the predefined stdint macros that GCC does. In
particular, GCC defines the following macros many of which are not defined
in Clang:

__U?INT{_,_FAST,_LEAST}{8,16,32,64}_{MAX,TYPE}__
__U?INT{PTR,MAX}_{MAX,TYPE}__

Some of these macros are used in newlib's stdint.h, if they exist. It seems
that it hasn't been thoroughly tested with Clang, however, as some macros
are assumed to exist.

Is it worth adding these to Clang?

-Ben
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140611/1846f31b/attachment.html>


More information about the cfe-dev mailing list