Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git] / newlib / libc / stdlib / realloc.c
blob999e8e00b8fa98f1ba1c71960d8e34f39b5a7cb3
1 #ifdef MALLOC_PROVIDED
2 int _dummy_realloc = 1;
3 #else
4 /* realloc.c -- a wrapper for realloc_r. */
6 #include <_ansi.h>
7 #include <reent.h>
8 #include <stdlib.h>
9 #include <malloc.h>
11 #ifndef _REENT_ONLY
13 void *
14 realloc (void *ap,
15 size_t nbytes)
17 return _realloc_r (_REENT, ap, nbytes);
20 #endif
21 #endif /* MALLOC_PROVIDED */