diff --git a/Demo/Common/ethernet/FreeTCPIP/net/pack_struct_end.h b/Demo/Common/ethernet/FreeTCPIP/net/pack_struct_end.h index 522a859af..8a5951fca 100644 --- a/Demo/Common/ethernet/FreeTCPIP/net/pack_struct_end.h +++ b/Demo/Common/ethernet/FreeTCPIP/net/pack_struct_end.h @@ -21,3 +21,8 @@ ; #pragma pack() #endif + +#ifdef __ICCARM__ + ; + #pragma pack() +#endif diff --git a/Demo/Common/ethernet/FreeTCPIP/net/pack_struct_start.h b/Demo/Common/ethernet/FreeTCPIP/net/pack_struct_start.h index 94bc0f522..efa41a0a4 100644 --- a/Demo/Common/ethernet/FreeTCPIP/net/pack_struct_start.h +++ b/Demo/Common/ethernet/FreeTCPIP/net/pack_struct_start.h @@ -22,3 +22,8 @@ #ifdef __ICCRX__ #pragma pack(1) #endif + + +#ifdef __ICCARM__ + #pragma pack(1) +#endif