aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2025-08-22 15:31:23 -0700
committerH.J. Lu <hjl.tools@gmail.com>2025-08-22 18:18:38 -0700
commitdd7122c0578bec13f4204e6236c194e5a7f35801 (patch)
tree83afa826ab3042935e1ac1d144d020c5558d0d9e
parentd142b7d20538d310abb3f3d8f372988552217ca4 (diff)
downloadglibc-dd7122c0578bec13f4204e6236c194e5a7f35801.zip
glibc-dd7122c0578bec13f4204e6236c194e5a7f35801.tar.gz
glibc-dd7122c0578bec13f4204e6236c194e5a7f35801.tar.bz2
Undef __INT64_C/__UINT64_C for glibc build and testHEADmaster
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>
-rw-r--r--include/stdint.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/stdint.h b/include/stdint.h
index 7f42874..8db6187 100644
--- a/include/stdint.h
+++ b/include/stdint.h
@@ -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