From faa13945eb2fed2094b8fcac88f81470bd39b2c4 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Tue, 1 Nov 2022 23:04:10 +0100 Subject: [PATCH] [ANDROID] And more fixes for android --- src/mallochook.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/mallochook.c b/src/mallochook.c index 164e03ef..883a227a 100644 --- a/src/mallochook.c +++ b/src/mallochook.c @@ -201,6 +201,13 @@ EXPORT int posix_memalign(void** p, size_t align, size_t size) return 0; } +EXPORT size_t malloc_usable_size(const void* p) +{ + return box_malloc_usable_size(p); +} + +#endif + EXPORT void* valloc(size_t size) { return box_memalign(box86_pagesize, size); @@ -216,11 +223,6 @@ EXPORT void cfree(void* p) box_free(p); } -EXPORT size_t malloc_usable_size(const void* p) -{ - return box_malloc_usable_size(p); -} -#endif EXPORT void* my__Znwm(size_t sz) //operator new(size_t) { return box_malloc(sz);