mirror of
https://github.com/autc04/Retro68.git
synced 2024-11-16 13:05:36 +00:00
20 lines
295 B
C
20 lines
295 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
|
|
_DEFUN (malloc_usable_size, (ptr),
|
|
_PTR ptr)
|
|
{
|
|
return _malloc_usable_size_r (_REENT, ptr);
|
|
}
|
|
|
|
#endif
|
|
#endif
|