summaryrefslogtreecommitdiff
path: root/AK/Types.h
diff options
context:
space:
mode:
authorTim Schumacher <timschumi@gmx.de>2022-09-13 23:41:57 +0200
committerBrian Gianforcaro <b.gianfo@gmail.com>2022-09-16 05:39:28 +0000
commit643d2a683b478424847e3e9103dbf5e7c22121f1 (patch)
treedb289196a3e5dc43f23dec6bef67bad2f9d7a540 /AK/Types.h
parent79ec6ed03d2a176b1f3e47aaff29daa5e5e1f369 (diff)
downloadserenity-643d2a683b478424847e3e9103dbf5e7c22121f1.zip
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.
Diffstat (limited to 'AK/Types.h')
-rw-r--r--AK/Types.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/AK/Types.h b/AK/Types.h
index b478185e60..7e8100cc46 100644
--- a/AK/Types.h
+++ b/AK/Types.h
@@ -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;