mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-18 04:19:21 +08:00
6783860a2e
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
21 lines
306 B
C
21 lines
306 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
|
|
|
|
_PTR
|
|
_DEFUN (memalign, (align, nbytes),
|
|
size_t align,
|
|
size_t nbytes)
|
|
{
|
|
return _memalign_r (_REENT, align, nbytes);
|
|
}
|
|
|
|
#endif
|
|
#endif
|