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:
Bananymous 2024-11-08 02:48:07 +02:00
parent 346853ee55
commit 4417268ecc
1 changed files with 0 additions and 7 deletions

View File

@ -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