mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-22 23:17:28 +08:00
9cf0c4a012
The variable doesn't follow the convention of having the same name as the function it's bundled with. Furthermore, it clashes with the variable of the same name in newlib/libc/stdlib/calloc.c. Signed-off-by: Florian Schmidt <florian.schmidt@neclab.eu>
23 lines
348 B
C
23 lines
348 B
C
#ifdef MALLOC_PROVIDED
|
|
int _dummy_realloc = 1;
|
|
#else
|
|
/* 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
|
|
#endif /* MALLOC_PROVIDED */
|