mirror of
https://github.com/pret/agbcc.git
synced 2026-10-21 15:26:53 -05:00
add libc building to agbcc.
This commit is contained in:
18
libc/stdlib/realloc.c
Normal file
18
libc/stdlib/realloc.c
Normal file
@@ -0,0 +1,18 @@
|
||||
/* realloc.c -- a wrapper for realloc_r. */
|
||||
|
||||
#include <_ansi.h>
|
||||
#include <reent.h>
|
||||
#include <stdlib.h>
|
||||
#include <malloc.h>
|
||||
|
||||
#ifndef _REENT_ONLY
|
||||
|
||||
_PTR
|
||||
_DEFUN (realloc, (ap, nbytes),
|
||||
_PTR ap _AND
|
||||
size_t nbytes)
|
||||
{
|
||||
return _realloc_r (_REENT, ap, nbytes);
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user