From de11757ac635c36429899ce9845fd545ddc3105b Mon Sep 17 00:00:00 2001 From: Alexis Ballier Date: Tue, 2 Aug 2016 15:32:01 +0200 Subject: [PATCH] Ensure capn segment is aligned properly when build with gcc too. Fixes build on 32 bits arm. --- lib/capnp_c.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/capnp_c.h b/lib/capnp_c.h index 9fa2718..2ca9298 100644 --- a/lib/capnp_c.h +++ b/lib/capnp_c.h @@ -115,7 +115,11 @@ struct capn_segment { char *data; size_t len, cap; void *user; -}; +} +#ifdef __GNUC__ +__attribute__((aligned(8))) +#endif +; enum CAPN_TYPE { CAPN_NULL = 0,