Merge pull request #476 from devnexen/malloc_usable_size_fbsd

fixes malloc_usable_size signature on FreeBSD.
This commit is contained in:
Daan 2021-10-27 12:11:43 -07:00 committed by GitHub
commit 8cf618a452
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -173,7 +173,7 @@ extern "C" {
void cfree(void* p) MI_FORWARD0(mi_free, p) void cfree(void* p) MI_FORWARD0(mi_free, p)
void* reallocf(void* p, size_t newsize) MI_FORWARD2(mi_reallocf,p,newsize) void* reallocf(void* p, size_t newsize) MI_FORWARD2(mi_reallocf,p,newsize)
size_t malloc_size(const void* p) MI_FORWARD1(mi_usable_size,p) size_t malloc_size(const void* p) MI_FORWARD1(mi_usable_size,p)
#if !defined(__ANDROID__) #if !defined(__ANDROID__) && !defined(__FreeBSD__)
size_t malloc_usable_size(void *p) MI_FORWARD1(mi_usable_size,p) size_t malloc_usable_size(void *p) MI_FORWARD1(mi_usable_size,p)
#else #else
size_t malloc_usable_size(const void *p) MI_FORWARD1(mi_usable_size,p) size_t malloc_usable_size(const void *p) MI_FORWARD1(mi_usable_size,p)