AK: Define both ::nullptr_t and std::nullptr_t

LLVM 15 switched around what it's basing its `nullptr_t` definitions on,
it's now defining `std::nullptr_t` using `::nullptr_t` instead of the
other way around.

Work around any errors that result from that by just defining it both in
the global namespace as well as in `std` ourselves.
This commit is contained in:
Tim Schumacher 2022-09-13 23:41:57 +02:00 committed by Brian Gianforcaro
parent 79ec6ed03d
commit 643d2a683b

View file

@ -65,6 +65,8 @@ namespace std { // NOLINT(cert-dcl58-cpp) nullptr_t must be in ::std:: for some
using nullptr_t = decltype(nullptr);
}
using nullptr_t = std::nullptr_t;
static constexpr FlatPtr explode_byte(u8 b)
{
FlatPtr value = b;