aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/almalloc.h3
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);