[libc-commits] [libc] [libc] Provide an implementation of the 'stdint.h' header (PR #83353)
via libc-commits
libc-commits at lists.llvm.org
Wed Feb 28 15:58:45 PST 2024
lntue wrote:
> We probably need to be careful with this change. I'm nervous if stdint.h from clang is 100% the same for different architectures?
>
> I do worry about `#include_next` as I highly suspect it's behavior is non-deterministic in the face of `-I` (or perhaps `-isystem`) flags.
>
> If we did do this change, I think we could+should replace our `#include <stdint.h>` with including our stdint.h.
>
> ```shell
> $ grep -rn '<stdint' libc | wc -l
> 208
> ```
+1 on use our own copy. If there are mismatches on some platform, it's better to fail on that platform, then we are informed and update our headers to match it.
https://github.com/llvm/llvm-project/pull/83353
More information about the libc-commits
mailing list