Преглед изворни кода

fix file api issue when compile using gcc toolchain

funshine пре 9 година
родитељ
комит
2321ee972b
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      app/spiffs/spiffs_nucleus.h

+ 2 - 0
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;