From 8033b629799de7ca909bea76152f70dddb32c9d8 Mon Sep 17 00:00:00 2001 From: daan Date: Sat, 29 Aug 2020 09:59:15 -0700 Subject: [PATCH] allow overriding MI_MAX_ALIGN_SIZE --- include/mimalloc-types.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/mimalloc-types.h b/include/mimalloc-types.h index 449e2e41..525a1a77 100644 --- a/include/mimalloc-types.h +++ b/include/mimalloc-types.h @@ -14,7 +14,9 @@ terms of the MIT license. A copy of the license can be found in the file // Minimal alignment necessary. On most platforms 16 bytes are needed // due to SSE registers for example. This must be at least `MI_INTPTR_SIZE` +#ifndef MI_MAX_ALIGN_SIZE #define MI_MAX_ALIGN_SIZE 16 // sizeof(max_align_t) +#endif // ------------------------------------------------------ // Variants