feat(newlib): Add definition of aligned_alloc to heap.c

Add the definition of aligned_alloc to the list of
definitions provided by heap.c.

Note that memalign (strictly equivalent) to aligned_alloc
is already defined in heap.c.
pull/13338/head
Guillaume Souchere 2024-01-31 09:00:35 +01:00
rodzic 3359694717
commit a7bd00eacc
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -74,6 +74,11 @@ void* memalign(size_t alignment, size_t n)
return heap_caps_aligned_alloc_default(alignment, n);
}
void* aligned_alloc(size_t alignment, size_t n)
{
return heap_caps_aligned_alloc_default(alignment, n);
}
int posix_memalign(void **out_ptr, size_t alignment, size_t size)
{
if (size == 0) {