aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/libc_compat/ubuntu_14/aligned_alloc.c
blob: 880babd32ab4f5b5f987db3dc6fad36f1f84f14b (plain) (blame)
1
2
3
4
5
6
#include <malloc.h> 
#include <stdlib.h> 
 
__attribute__((weak)) void* aligned_alloc(size_t alignment, size_t size) { 
    return memalign(alignment, size); 
}