forked from Bananymous/banan-os
BAN: only include <new> in PlacementNew.h
I was getting annoying multiple definitions for placement new and my build system requires that c++ libraries are compiled. I guess this is the easiest and cleanest solution
This commit is contained in:
parent
346853ee55
commit
4417268ecc
|
@ -1,10 +1,3 @@
|
|||
#pragma once
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
#ifdef __banan_os__
|
||||
inline void* operator new(size_t, void* addr) { return addr; }
|
||||
inline void* operator new[](size_t, void* addr) { return addr; }
|
||||
#else
|
||||
#include <new>
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue