mirror of
https://github.com/pret/agbcc.git
synced 2026-10-26 09:59:56 -05:00
add libc building to agbcc.
This commit is contained in:
17
libc/stdlib/msize.c
Normal file
17
libc/stdlib/msize.c
Normal file
@@ -0,0 +1,17 @@
|
||||
/* 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
|
||||
Reference in New Issue
Block a user