\r
typedef uip_ip6addr_t uip_ipaddr_t;\r
#else /* UIP_CONF_IPV6 */\r
- #include "pack_struct_start.h"\r
- typedef union uip_ip4addr_t\r
- {\r
- u8_t u8[4]; /* Initializer, must come first!!! */\r
- u16_t u16[2];\r
- } uip_ip4addr_t;\r
- typedef uip_ip4addr_t uip_ipaddr_t\r
- #include "pack_struct_end.h"\r
+ #ifdef __CC_ARM\r
+ __packed /* The ARM compiler insists on this being packed, but with other compilers packing it generates a warning as it will be packed anyway. */\r
+ #endif\r
+\r
+ typedef union uip_ip4addr_t\r
+ {\r
+ u8_t u8[4]; /* Initializer, must come first!!! */\r
+ u16_t u16[2];\r
+ } uip_ip4addr_t;\r
+ typedef uip_ip4addr_t uip_ipaddr_t;\r
#endif /* UIP_CONF_IPV6 */\r
\r
/*---------------------------------------------------------------------------*/\r