From 20fc6df0ab2bee391961b5f823a327887abc96b4 Mon Sep 17 00:00:00 2001 From: Deomid Ryabkov Date: Sat, 23 Sep 2017 21:13:04 +0100 Subject: [PATCH] TI compiler supports __attribute__((packed)) And compilation fails without it --- src/spiffs_nucleus.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spiffs_nucleus.h b/src/spiffs_nucleus.h index dd1c414..b6165c2 100644 --- a/src/spiffs_nucleus.h +++ b/src/spiffs_nucleus.h @@ -143,8 +143,8 @@ -#if defined(__GNUC__) || defined(__clang__) - /* For GCC and clang */ +#if defined(__GNUC__) || defined(__clang__) || defined(__TI_COMPILER_VERSION__) + /* For GCC, clang and TI compilers */ #define SPIFFS_PACKED __attribute__((packed)) #elif defined(__ICCARM__) || defined(__CC_ARM) /* For IAR ARM and Keil MDK-ARM compilers */