From 6824cb17a6820d43314fbcb655254129583af6e3 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 25 Feb 2020 15:58:24 +0100 Subject: AK: Have AK/kmalloc.h #include on other platforms This should make stuff like placement new work correctly when building outside of Serenity. This stuff is a bit delicate due to the weirdly staged toolchain build at the moment. Hopefully we can unify this stuff in the future. --- AK/StringImpl.cpp | 4 ---- AK/kmalloc.h | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'AK') diff --git a/AK/StringImpl.cpp b/AK/StringImpl.cpp index f4bd10c68d..5f5d2f7752 100644 --- a/AK/StringImpl.cpp +++ b/AK/StringImpl.cpp @@ -29,10 +29,6 @@ #include "StdLibExtras.h" #include "kmalloc.h" -#ifndef __serenity__ -#include -#endif - //#define DEBUG_STRINGIMPL #ifdef DEBUG_STRINGIMPL diff --git a/AK/kmalloc.h b/AK/kmalloc.h index 6f6375e71e..292872c2d1 100644 --- a/AK/kmalloc.h +++ b/AK/kmalloc.h @@ -26,6 +26,10 @@ #pragma once +#ifndef __serenity__ +# include +#endif + #ifdef KERNEL # define AK_MAKE_ETERNAL \ public: \ -- cgit v1.2.3