mirror of https://git.musl-libc.org/git/musl
Browse Source
this change eliminates the internal __memalign function and makes the memalign and posix_memalign functions completely independent of the malloc implementation, written portably in terms of aligned_alloc.master
4 changed files with 5 additions and 10 deletions
@ -1,7 +1,7 @@ |
|||
#define _BSD_SOURCE |
|||
#include <stdlib.h> |
|||
#include "malloc_impl.h" |
|||
|
|||
void *aligned_alloc(size_t align, size_t len) |
|||
void *memalign(size_t align, size_t len) |
|||
{ |
|||
return __memalign(align, len); |
|||
return aligned_alloc(align, len); |
|||
} |
|||
|
|||
Loading…
Reference in new issue