mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 01:41:59 -05:00
AK: Have AK/kmalloc.h #include <new> 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.
This commit is contained in:
parent
00e744c263
commit
6824cb17a6
2 changed files with 4 additions and 4 deletions
|
@ -29,10 +29,6 @@
|
|||
#include "StdLibExtras.h"
|
||||
#include "kmalloc.h"
|
||||
|
||||
#ifndef __serenity__
|
||||
#include <new>
|
||||
#endif
|
||||
|
||||
//#define DEBUG_STRINGIMPL
|
||||
|
||||
#ifdef DEBUG_STRINGIMPL
|
||||
|
|
|
@ -26,6 +26,10 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#ifndef __serenity__
|
||||
# include <new>
|
||||
#endif
|
||||
|
||||
#ifdef KERNEL
|
||||
# define AK_MAKE_ETERNAL \
|
||||
public: \
|
||||
|
|
Loading…
Reference in a new issue