[libcxx-commits] [libcxx] [libc++] Remove libc++'s own inttypes.h (PR #193716)
Dimitry Andric via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Apr 30 04:52:48 PDT 2026
DimitryAndric wrote:
One thing that I ran into with the removal of an earlier wrapper header, stdint.h, in aa7f377c965c was that the header was definitely doing _something_, namely defining `__STDC_LIMIT_MACROS` and `__STDC_CONSTANT_MACROS`, which ensured that `SIZE_MAX` etc were defined by the system's stdint.h, when that was included from <cstdint>.
Which is why I had to partially revert that in https://github.com/freebsd/freebsd-src/commit/00bee6fcd77f7812e967f85d1cacbc349ff312b3, since some external programs would no longer compile, unless you would hack them to manually define those `__STDC_` macros.
Something similar has now happened with the removal of this inttypes.h header; luckily it's the flang build so it immediately manifests itself.
https://github.com/llvm/llvm-project/pull/193716
More information about the libcxx-commits
mailing list