mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-19 04:49:25 +08:00
9087163804
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
19 lines
280 B
C
19 lines
280 B
C
#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
|
|
malloc_usable_size (void *ptr)
|
|
{
|
|
return _malloc_usable_size_r (_REENT, ptr);
|
|
}
|
|
|
|
#endif
|
|
#endif
|