]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Adjust stdint for clang-20
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 17 Oct 2025 19:13:21 +0000 (16:13 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 20 Oct 2025 14:33:54 +0000 (11:33 -0300)
clang 20 adds both __INT64_C and __UINT64_C as builtins, but different
than gcc it does not undef them in its stdint wrapper.

Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
stdlib/stdint.h

index 3ec1bc4ad060cc81ac2ecfc72b8858e68312a320..302230914cdf0e5cd0dfb569804c9afff3d32133 100644 (file)
@@ -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