mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-19 04:49:25 +08:00
9087163804
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
20 lines
282 B
C
20 lines
282 B
C
#ifndef MALLOC_PROVIDED
|
|
/* malign.c -- a wrapper for memalign_r. */
|
|
|
|
#include <_ansi.h>
|
|
#include <reent.h>
|
|
#include <stdlib.h>
|
|
#include <malloc.h>
|
|
|
|
#ifndef _REENT_ONLY
|
|
|
|
void *
|
|
memalign (size_t align,
|
|
size_t nbytes)
|
|
{
|
|
return _memalign_r (_REENT, align, nbytes);
|
|
}
|
|
|
|
#endif
|
|
#endif
|