diff --git a/BAN/include/BAN/PlacementNew.h b/BAN/include/BAN/PlacementNew.h index 30c48c5f..828a8e5b 100644 --- a/BAN/include/BAN/PlacementNew.h +++ b/BAN/include/BAN/PlacementNew.h @@ -1,3 +1,10 @@ #pragma once -#include +#if __has_include() + #include +#else + #include + + inline void* operator new(size_t, void* addr) { return addr; } + inline void* operator new[](size_t, void* addr) { return addr; } +#endif