Retro68/gcc/newlib/libc/stdlib/msize.c

19 lines
280 B
C
Raw Normal View History

2017-04-11 21:13:36 +00: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 15:30:48 +00:00
malloc_usable_size (void *ptr)
2017-04-11 21:13:36 +00:00
{
return _malloc_usable_size_r (_REENT, ptr);
}
#endif
#endif