BAN: only define placement new operators for banan-os targets
This allows building and using BAN library outside of banan-os!
This commit is contained in:
parent
44629ba5dd
commit
df4f37d68d
|
@ -2,5 +2,9 @@
|
|||
|
||||
#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