Ensure capn segment is aligned properly when build with gcc too. Fixes build on 32 bits arm.
This commit is contained in:
parent
c6285474b9
commit
de11757ac6
1 changed files with 5 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue