mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
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.
This commit is contained in:
parent
3359694717
commit
a7bd00eacc
@ -74,6 +74,11 @@ void* memalign(size_t alignment, size_t n)
|
|||||||
return heap_caps_aligned_alloc_default(alignment, 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)
|
int posix_memalign(void **out_ptr, size_t alignment, size_t size)
|
||||||
{
|
{
|
||||||
if (size == 0) {
|
if (size == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user