From d3382db2f90ed9c3479197c9fb61aa343d1de547 Mon Sep 17 00:00:00 2001 From: Pedro Gonnet <gonnet@google.com> Date: Sun, 18 Dec 2016 23:26:04 +0100 Subject: [PATCH] add a macro with the actual alignment in bytes. --- src/align.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/align.h b/src/align.h index 84e2909c08..915af33e6e 100644 --- a/src/align.h +++ b/src/align.h @@ -19,9 +19,13 @@ #ifndef SWIFT_ALIGN_H #define SWIFT_ALIGN_H +/** + * @brief The default struct alignment in SWIFT. + */ +#define SWIFT_STRUCT_ALIGNMENT 32 /** * @brief Defines alignment of structures */ -#define SWIFT_STRUCT_ALIGN __attribute__((aligned(32))) +#define SWIFT_STRUCT_ALIGN __attribute__((aligned(SWIFT_STRUCT_ALIGNMENT))) #endif /* SWIFT_ALIGN_H */ -- GitLab