From 2321ee972b22595b128ca90224a558a2b862d2a5 Mon Sep 17 00:00:00 2001 From: funshine Date: Fri, 26 Dec 2014 00:03:48 +0800 Subject: [PATCH] fix file api issue when compile using gcc toolchain --- app/spiffs/spiffs_nucleus.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/spiffs/spiffs_nucleus.h b/app/spiffs/spiffs_nucleus.h index 6df5f4e0..49b33053 100644 --- a/app/spiffs/spiffs_nucleus.h +++ b/app/spiffs/spiffs_nucleus.h @@ -400,6 +400,8 @@ typedef struct __attribute(( packed )) { u32_t size; // type of object spiffs_obj_type type; + // alignment2 + u8_t _align2[4 - (sizeof(spiffs_obj_type)&3)==0 ? 4 : (sizeof(spiffs_obj_type)&3)]; // name of object u8_t name[SPIFFS_OBJ_NAME_LEN]; } spiffs_page_object_ix_header;