Skip to content

Commit 412c001

Browse files
RobLoachsaghul
authored andcommitted
android: In NDK, malloc_usable_size() was renamed to dlmalloc_usable_size()
1 parent 6868fb9 commit 412c001

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cutils.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,8 @@ static inline size_t js__malloc_usable_size(const void *ptr)
429429
return malloc_size(ptr);
430430
#elif defined(_WIN32)
431431
return _msize((void *)ptr);
432+
#elif defined(__ANDROID__)
433+
return dlmalloc_usable_size((void *)ptr);
432434
#elif defined(__linux__) || defined(__FreeBSD__)
433435
return malloc_usable_size((void *)ptr);
434436
#else

0 commit comments

Comments
 (0)