Revert "[libc] Avoid host header collisions in full builds (-nostdinc)" (#187079)

Reverts llvm/llvm-project#187025

Fails on openmp bot:
https://lab.llvm.org/buildbot/#/builders/10/builds/24743
('INT64_MIN' macro redefined when used Clang-provided <stdint.h> is
used)
fails on RISC-V-32 bot:
https://lab.llvm.org/buildbot/#/builders/196/builds/17067
due to MPFRNumber constructor not picking the right overload for
uint32_t argument.
This commit is contained in:
Alexey Samsonov 2026-03-17 11:25:53 -07:00 committed by GitHub
parent c3219f5222
commit 4b9693a423
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 0 additions and 8 deletions

View File

@ -11,11 +11,7 @@
#ifdef LIBC_FULL_BUILD
#include "hdr/types/size_t.h"
#ifdef __cplusplus
extern "C" void *aligned_alloc(size_t, size_t) noexcept;
#else
extern "C" void *aligned_alloc(size_t, size_t);
#endif
#else // Overlay mode

View File

@ -13,10 +13,6 @@
// that is `libc.include.stdint` is added to the dependency of all targets
// that use <stdint.h> header.
#ifdef LIBC_FULL_BUILD
#include "include/llvm-libc-macros/stdint-macros.h"
#else
#include <stdint.h>
#endif
#endif // LLVM_LIBC_HDR_STDINT_PROXY_H