1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:47:36 +00:00

AK: Fix problem when building i686-pc-serenity toolchain from scratch.

This commit is contained in:
Andreas Kling 2019-04-05 03:58:40 +02:00
parent dd966c03c9
commit 9de7a0daaf
2 changed files with 6 additions and 5 deletions

View file

@ -1,9 +1,5 @@
#pragma once
#ifndef KERNEL
#include <new>
#endif
#if defined(SERENITY) && defined(KERNEL)
#define AK_MAKE_ETERNAL \
public: \
@ -48,4 +44,9 @@ inline void operator delete[](void* ptr)
return kfree(ptr);
}
inline void* operator new(size_t, void* ptr)
{
return ptr;
}
#endif