Ensure capn segment is aligned properly when build with gcc too. Fixes build on 32 bits arm.

This commit is contained in:
Alexis Ballier 2016-08-02 15:32:01 +02:00
parent c6285474b9
commit de11757ac6

View file

@ -115,7 +115,11 @@ struct capn_segment {
char *data; char *data;
size_t len, cap; size_t len, cap;
void *user; void *user;
}; }
#ifdef __GNUC__
__attribute__((aligned(8)))
#endif
;
enum CAPN_TYPE { enum CAPN_TYPE {
CAPN_NULL = 0, CAPN_NULL = 0,