Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git] / newlib / libc / stdlib / malign.c
blob480060c433e945c99fc0ce6a4b9d1e14e7116081
1 #ifndef MALLOC_PROVIDED
2 /* malign.c -- a wrapper for memalign_r. */
4 #include <_ansi.h>
5 #include <reent.h>
6 #include <stdlib.h>
7 #include <malloc.h>
9 #ifndef _REENT_ONLY
11 void *
12 memalign (size_t align,
13 size_t nbytes)
15 return _memalign_r (_REENT, align, nbytes);
18 #endif
19 #endif