mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 12:35:14 +00: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
Notes:
sideshowbarker
2024-07-19 09:04:10 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/6824cb17a68
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…
Add table
Reference in a new issue