]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Undef __INT64_C/__UINT64_C for glibc build and test
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 22 Aug 2025 22:31:23 +0000 (15:31 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 23 Aug 2025 01:18:38 +0000 (18:18 -0700)
Since clang 20 defines __INT64_C and __UINT64_C as built-in macros, undef
them for glibc build and test.  This fixes BZ #33311.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
Reviewed-by: Collin Funk <collin.funk1@gmail.com>
include/stdint.h

index 7f428741d70f2edd7bb1312479ce8f032cedb2ad..8db6187c49187bdb540f6bfcd8860f940260bd9a 100644 (file)
@@ -1 +1,6 @@
+#ifndef _STDINT_H
+/* NB: Clang 20 defines them as built-in macros.  */
+#undef __INT64_C
+#undef __UINT64_C
 #include <stdlib/stdint.h>
+#endif