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:
@@ -1,10 +1,3 @@
|
|||||||
#pragma once
|
#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>
|
#include <new>
|
||||||
#endif
|
|
||||||
|
|||||||
Reference in New Issue
Block a user