19 lines
280 B
C
Raw Normal View History

2017-04-11 23:13:36 +02:00
#ifndef MALLOC_PROVIDED
/* msize.c -- a wrapper for malloc_usable_size. */
#include <_ansi.h>
#include <reent.h>
#include <stdlib.h>
#include <malloc.h>
#ifndef _REENT_ONLY
size_t
2018-12-28 16:30:48 +01:00
malloc_usable_size (void *ptr)
2017-04-11 23:13:36 +02:00
{
return _malloc_usable_size_r (_REENT, ptr);
}
#endif
#endif