libc/newlib/libc/stdlib/malign.c
Yaakov Selkowitz 9087163804 ansification: remove _DEFUN
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
2018-01-17 11:47:26 -06:00

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