From 4417268ecc93f670100ab7485ffde7c0eb8f4afb Mon Sep 17 00:00:00 2001 From: Bananymous Date: Fri, 8 Nov 2024 02:48:07 +0200 Subject: [PATCH] BAN: only include 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 --- BAN/include/BAN/PlacementNew.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/BAN/include/BAN/PlacementNew.h b/BAN/include/BAN/PlacementNew.h index 3dacc2a57e..30c48c5ff3 100644 --- a/BAN/include/BAN/PlacementNew.h +++ b/BAN/include/BAN/PlacementNew.h @@ -1,10 +1,3 @@ #pragma once -#include - -#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 -#endif