mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-03 10:49:58 +00:00
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
|