mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-12-03 08:01:53 +00:00
Migrate to STL
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
#include <new>
|
||||
#include <stdlib.h>
|
||||
|
||||
/* Override libc++ new implementation
|
||||
* to optimize final build size */
|
||||
|
||||
void* operator new(std::size_t s) { return malloc(s); }
|
||||
void* operator new[](std::size_t s) { return malloc(s); }
|
||||
void operator delete(void *p) { free(p); }
|
||||
|
||||
Reference in New Issue
Block a user