android: In NDK, malloc_usable_size() was renamed to dlmalloc_usable_size()
This commit is contained in:
parent
6868fb9e25
commit
412c0011bb
1 changed files with 2 additions and 0 deletions
2
cutils.h
2
cutils.h
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue