From 5508c082e525243d0d612e2f59f008cd316bcd2e Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Mon, 30 Dec 2024 21:27:27 +0100 Subject: [PATCH] Add padding to align the struct in host build. Signed-off-by: Pol Henarejos --- src/fs/file.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/fs/file.h b/src/fs/file.h index 1758cbe..3949997 100644 --- a/src/fs/file.h +++ b/src/fs/file.h @@ -79,6 +79,9 @@ typedef struct file { const uint8_t parent; //entry number in the whole table!! const uint8_t type; const uint8_t ef_structure; +#ifdef ENABLE_EMULATION + uint32_t _padding; +#endif } __attribute__ ((packed)) file_t; extern bool file_has_data(file_t *);