Undef __INT64_C/__UINT64_C for glibc build and test

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>
This commit is contained in:
H.J. Lu 2025-08-22 15:31:23 -07:00
parent d142b7d205
commit dd7122c057
1 changed files with 5 additions and 0 deletions

View 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