libmicrohttpd2

HTTP server C library (MHD 2.x, alpha)
Log | Files | Refs | README | LICENSE

commit 3524e773d66df73d463a36e7c3bac6765b28d102
parent 1aa64e7f49587acb956190f40be76328db831249
Author: Evgeny Grin (Karlson2k) <k2k@drgrin.dev>
Date:   Fri, 29 Aug 2025 18:51:15 +0200

mempool_funcs.h: use __BIGGEST_ALIGNMENT__ for alignment if available

Diffstat:
Msrc/mhd2/mempool_funcs.h | 10+++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/src/mhd2/mempool_funcs.h b/src/mhd2/mempool_funcs.h @@ -54,11 +54,19 @@ #include "sys_bool_type.h" #include "mempool_types.h" + +#ifdef __BIGGEST_ALIGNMENT__ +/** + * Alignment size used by memory pool function. + */ +# define mhd_MEMPOOL_ALIGN_SIZE __BIGGEST_ALIGNMENT__ +#else /* ! __BIGGEST_ALIGNMENT__ */ /** * Alignment size used by memory pool function. * This is 2x pointer size (similar to GNU libc). */ -#define mhd_MEMPOOL_ALIGN_SIZE (2 * sizeof(void*)) +# define mhd_MEMPOOL_ALIGN_SIZE (2 * sizeof(void*)) +#endif /* ! __BIGGEST_ALIGNMENT__ */ /** * Perform one-time initialisation of the internal values required for