mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 09:00:22 +00:00
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:
parent
79ec6ed03d
commit
643d2a683b
Notes:
sideshowbarker
2024-07-17 07:08:38 +09:00
Author: https://github.com/timschumi Commit: https://github.com/SerenityOS/serenity/commit/643d2a683b Pull-request: https://github.com/SerenityOS/serenity/pull/15233 Reviewed-by: https://github.com/BenWiederhake ✅ Reviewed-by: https://github.com/bgianfo
1 changed files with 2 additions and 0 deletions
|
@ -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 = decltype(nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
using nullptr_t = std::nullptr_t;
|
||||||
|
|
||||||
static constexpr FlatPtr explode_byte(u8 b)
|
static constexpr FlatPtr explode_byte(u8 b)
|
||||||
{
|
{
|
||||||
FlatPtr value = b;
|
FlatPtr value = b;
|
||||||
|
|
Loading…
Reference in a new issue