]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Remove unnecessary uses of <stdint.h>
authorJonathan Wakely <jwakely@redhat.com>
Thu, 7 Dec 2023 12:13:59 +0000 (12:13 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 1 Aug 2024 20:56:56 +0000 (21:56 +0100)
commit3a817a4a5a6d94da9127af3be9f84a74e3076ee2
tree4aa05f69785ab1dc9656c72b5ebcaaad618d378e
parent283f6e24c6b5c8a1b35003b27bfcad46af25a859
libstdc++: Remove unnecessary uses of <stdint.h>

We don't need to include all of <stdint.h> when we only need uintptr_t
from it. By using GCC's internal macro we avoid unnecessarily declaring
everything in <stdint.h>. This helps users to avoid accidentally relying
on those names being declared without explicitly including the header.

libstdc++-v3/ChangeLog:

* include/bits/align.h (align, assume_aligned): Use
__UINTPTR_TYPE__ instead of uintptr_t. Do not include
<stdint.h>.
* include/bits/atomic_base.h (__atomic_ref): Likewise.
* include/bits/atomic_wait.h (__waiter_pool_base::_S_for):
Likewise.
* include/std/atomic: Include <cstdint>.
libstdc++-v3/include/bits/align.h
libstdc++-v3/include/bits/atomic_base.h
libstdc++-v3/include/bits/atomic_wait.h
libstdc++-v3/include/std/atomic