android: In NDK, malloc_usable_size() was renamed to dlmalloc_usable_size()

This commit is contained in:
Rob Loach 2024-01-29 14:51:49 -05:00 committed by Saúl Ibarra Corretgé
parent 6868fb9e25
commit 412c0011bb

View file

@ -429,6 +429,8 @@ static inline size_t js__malloc_usable_size(const void *ptr)
return malloc_size(ptr);
#elif defined(_WIN32)
return _msize((void *)ptr);
#elif defined(__ANDROID__)
return dlmalloc_usable_size((void *)ptr);
#elif defined(__linux__) || defined(__FreeBSD__)
return malloc_usable_size((void *)ptr);
#else