4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-19 04:49:25 +08:00
Yaakov Selkowitz e6321aa6a6 ansification: remove _PTR
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
2018-01-17 11:47:16 -06:00

34 lines
436 B
C

#include <malloc.h>
#ifdef DEFINE_MALLOC
void *
_malloc_r (struct _reent *r, size_t sz)
{
return malloc (sz);
}
#endif
#ifdef DEFINE_CALLOC
void *
_calloc_r (struct _reent *r, size_t a, size_t b)
{
return calloc (a, b);
}
#endif
#ifdef DEFINE_FREE
void
_free_r (struct _reent *r, void *x)
{
free (x);
}
#endif
#ifdef DEFINE_REALLOC
void *
_realloc_r (struct _reent *r, void *x, size_t sz)
{
return realloc (x, sz);
}
#endif