From eac105fe9e9e4b0d6280fa0cbccc8b3e0918433e Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Sat, 2 Sep 2023 14:23:22 +0200 Subject: [ANDROID] And another attempt to fix the build, testing my patience it seems --- src/mallochook.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/mallochook.c b/src/mallochook.c index f3dbe0ca..1559c4be 100644 --- a/src/mallochook.c +++ b/src/mallochook.c @@ -305,7 +305,11 @@ EXPORT void cfree(void* p) box_free(p); } +#ifdef ANDROID +EXPORT size_t malloc_usable_size(const void* p) +#else EXPORT size_t malloc_usable_size(void* p) +#endif { if(malloc_hack_2 && real_malloc_usable_size) { if(getMmapped((uintptr_t)p)) -- cgit 1.4.1