aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorToni Uhlig <Toni.Uhlig@tq-group.com>2017-11-30 16:51:13 +0100
committerToni Uhlig <Toni.Uhlig@tq-group.com>2017-11-30 16:51:13 +0100
commit6f0e2dda985d42d4e8837482c82b13f927bb8154 (patch)
tree0d7b9d89f11adcf255722fd59a6de38d78753d8f /src
parentbd16ac240833c43be888c47eb29bdbeca74f04b4 (diff)
minor improvments
Diffstat (limited to 'src')
-rw-r--r--src/trailer.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/trailer.h b/src/trailer.h
index 4d20022..03230d7 100644
--- a/src/trailer.h
+++ b/src/trailer.h
@@ -8,12 +8,15 @@
/* max length of version string, e.g. "0.33.1pre1" */
#define MAX_VERSION 16
+/* "Pack" our struct which is necessary for mingw cross compile.
+ * Windows uses a different byte alignment then Linux!
+ */
struct update_trailer {
uint8_t version[MAX_VERSION];
uint32_t model_tag;
uint32_t loopaes_length;
/* keep the trailer version info last */
uint32_t trailer_version;
-};
+} __attribute__((packed, gcc_struct));
#endif