newlib-cygwin/newlib/libc/stdlib/malign.c

21 lines
308 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 *
_DEFUN (memalign, (align, nbytes),
size_t align,
size_t nbytes)
{
return _memalign_r (_REENT, align, nbytes);
}
#endif
#endif