diff options
Diffstat (limited to 'include/almalloc.h')
-rw-r--r-- | include/almalloc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/almalloc.h b/include/almalloc.h index 355db795..8eadb5b3 100644 --- a/include/almalloc.h +++ b/include/almalloc.h @@ -7,6 +7,9 @@ extern "C" { #endif +/* Minimum alignment required by posix_memalign. */ +#define DEF_ALIGN sizeof(void*) + void *al_malloc(size_t alignment, size_t size); void *al_calloc(size_t alignment, size_t size); void al_free(void *ptr); |