[PATCH] Undef __INT64_C/__UINT64_C for glibc build and test

Collin Funk collin.funk1@gmail.com
Sat Aug 23 00:59:09 GMT 2025


"H.J. Lu" <hjl.tools@gmail.com> writes:

>> > +/* NB: Clang 20 defines them as built-in macros.  */
>> > +#undef __INT64_C
>> > +#undef __UINT64_C
>> >  #include <stdlib/stdint.h>
>> > +#endif
>>
>> Should we just do all the others while we are at it? They are also
>
> Since stdint.h defines only __INT64_C and __UINT64_C, we don't
> need to do more than that.

Ah right, __U?INT64_C is defined because 32-bit and 64-bit systems have
different definitions (i.e. using L vs LL). The others are the same. I
assumed they existed, my bad.

This patch is good then. Thanks.

Reviewed-by: Collin Funk <collin.funk1@gmail.com>

Collin


More information about the Libc-alpha mailing list