mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:24:58 +00:00
AK: Provide a fallback definition for std::nothrow
This commit is contained in:
parent
2470dd3bb5
commit
22f0d04f43
1 changed files with 6 additions and 0 deletions
|
@ -60,4 +60,10 @@ void operator delete[](void* ptr, size_t) noexcept
|
|||
return free(ptr);
|
||||
}
|
||||
|
||||
// This is usually provided by libstdc++ in most cases, and the kernel has its own definition in
|
||||
// Kernel/Heap/kmalloc.cpp. If neither of those apply, the following should suffice to not fail during linking.
|
||||
namespace AK_REPLACED_STD_NAMESPACE {
|
||||
const nothrow_t nothrow;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue