aligned_alloc.c 156 B

123456
  1. #include <malloc.h>
  2. #include <stdlib.h>
  3. __attribute__((weak)) void* aligned_alloc(size_t alignment, size_t size) {
  4. return memalign(alignment, size);
  5. }