kopia lustrzana https://github.com/espressif/esp-idf
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
rodzic
3359694717
commit
a7bd00eacc
|
@ -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) {
|
||||
|
|
Ładowanie…
Reference in New Issue