TI compiler supports __attribute__((packed))

And compilation fails without it
This commit is contained in:
Deomid Ryabkov
2017-09-23 21:13:04 +01:00
parent f5e26c4e93
commit 20fc6df0ab
+2 -2
View File
@@ -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 */