[PATCH 46/59] Adjust stdint for clang-20

H.J. Lu hjl.tools@gmail.com
Fri Oct 17 22:25:10 GMT 2025


On Sat, Oct 18, 2025 at 4:02 AM Adhemerval Zanella
<adhemerval.zanella@linaro.org> wrote:
>
> clang 20 adds both __INT64_C and __UINT64_C as builtins, but different
> than gcc it does not undef them in its stdint wrapper.
> ---
>  stdlib/stdint.h | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/stdlib/stdint.h b/stdlib/stdint.h
> index 3ec1bc4ad0..302230914c 100644
> --- a/stdlib/stdint.h
> +++ b/stdlib/stdint.h
> @@ -91,6 +91,8 @@ typedef __intmax_t            intmax_t;
>  typedef __uintmax_t            uintmax_t;
>
>
> +# undef __INT64_C
> +# undef __UINT64_C
>  # if __WORDSIZE == 64
>  #  define __INT64_C(c) c ## L
>  #  define __UINT64_C(c)        c ## UL
> --
> 2.43.0
>

LGTM.

Reviewed-by: H.J. Lu <hjl.tools@gmail.com>

Thanks.

-- 
H.J.


More information about the Libc-alpha mailing list