diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-04-05 03:58:40 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-04-05 03:58:40 +0200 |
commit | 9de7a0daaf35f91f55d7a64bebe327e71b56b67b (patch) | |
tree | 49bda008382d11e2a6b474e9d44613826c998284 /AK | |
parent | dd966c03c9f8931d48cc724fad053b5d610c3fd9 (diff) | |
download | serenity-9de7a0daaf35f91f55d7a64bebe327e71b56b67b.zip |
AK: Fix problem when building i686-pc-serenity toolchain from scratch.
Diffstat (limited to 'AK')
-rw-r--r-- | AK/kmalloc.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/AK/kmalloc.h b/AK/kmalloc.h index d6a5966e3d..d5bf402c76 100644 --- a/AK/kmalloc.h +++ b/AK/kmalloc.h @@ -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 |