]> git.sur5r.net Git - freertos/blobdiff - Demo/Common/ethernet/FreeTCPIP/net/uip.h
The Keil compiler insists on having the IP address structure packed, but doing so...
[freertos] / Demo / Common / ethernet / FreeTCPIP / net / uip.h
index 3cfad7bef01a13e50447e241cf0b111140aa623d..3a0ed1989470ca4d12b207300120d4d0aab47d6a 100644 (file)
 \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