4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-19 04:49:25 +08:00

22 lines
324 B
C
Raw Normal View History

2000-02-17 19:39:52 +00:00
#ifdef MALLOC_PROVIDED
int _dummy_realloc = 1;
2000-02-17 19:39:52 +00:00
#else
/* realloc.c -- a wrapper for realloc_r. */
#include <_ansi.h>
#include <reent.h>
#include <stdlib.h>
#include <malloc.h>
#ifndef _REENT_ONLY
void *
realloc (void *ap,
2000-02-17 19:39:52 +00:00
size_t nbytes)
{
return _realloc_r (_REENT, ap, nbytes);
}
#endif
#endif /* MALLOC_PROVIDED */