diff --git a/Demo/Common/ethernet/FreeTCPIP/net/pack_struct_end.h b/Demo/Common/ethernet/FreeTCPIP/net/pack_struct_end.h index 8a5951fca7..a23febe4df 100644 --- a/Demo/Common/ethernet/FreeTCPIP/net/pack_struct_end.h +++ b/Demo/Common/ethernet/FreeTCPIP/net/pack_struct_end.h @@ -26,3 +26,8 @@ ; #pragma pack() #endif + + +#ifdef __CC_ARM + ; +#endif diff --git a/Demo/Common/ethernet/FreeTCPIP/net/pack_struct_start.h b/Demo/Common/ethernet/FreeTCPIP/net/pack_struct_start.h index efa41a0a4d..49a4dc9f61 100644 --- a/Demo/Common/ethernet/FreeTCPIP/net/pack_struct_start.h +++ b/Demo/Common/ethernet/FreeTCPIP/net/pack_struct_start.h @@ -27,3 +27,8 @@ #ifdef __ICCARM__ #pragma pack(1) #endif + +#ifdef __CC_ARM + __packed +#endif + diff --git a/Demo/Common/ethernet/FreeTCPIP/net/uip.h b/Demo/Common/ethernet/FreeTCPIP/net/uip.h index 00ae035a64..3cfad7bef0 100644 --- a/Demo/Common/ethernet/FreeTCPIP/net/uip.h +++ b/Demo/Common/ethernet/FreeTCPIP/net/uip.h @@ -69,12 +69,14 @@ typedef uip_ip6addr_t uip_ipaddr_t; #else /* UIP_CONF_IPV6 */ - typedef union uip_ip4addr_t - { - u8_t u8[4]; /* Initializer, must come first!!! */ - u16_t u16[2]; - } uip_ip4addr_t; - typedef uip_ip4addr_t uip_ipaddr_t; + #include "pack_struct_start.h" + typedef union uip_ip4addr_t + { + u8_t u8[4]; /* Initializer, must come first!!! */ + u16_t u16[2]; + } uip_ip4addr_t; + typedef uip_ip4addr_t uip_ipaddr_t + #include "pack_struct_end.h" #endif /* UIP_CONF_IPV6 */ /*---------------------------------------------------------------------------*/ diff --git a/Demo/Common/ethernet/FreeTCPIP/net/uip_arp.h b/Demo/Common/ethernet/FreeTCPIP/net/uip_arp.h index 6aec6ad7d7..e04d353053 100644 --- a/Demo/Common/ethernet/FreeTCPIP/net/uip_arp.h +++ b/Demo/Common/ethernet/FreeTCPIP/net/uip_arp.h @@ -146,4 +146,4 @@ void uip_arp_timer( void ); #endif /* __UIP_ARP_H__ */ /** @} */ - \ No newline at end of file +