{\r
u8_t u8[4]; /* Initializer, must come first!!! */\r
u16_t u16[2];\r
- #if 0\r
- u32_t u32;\r
- #endif\r
} uip_ip4addr_t;\r
typedef uip_ip4addr_t uip_ipaddr_t;\r
#endif /* UIP_CONF_IPV6 */\r
* \hideinitializer\r
*/\r
#ifndef uip_ipaddr_copy\r
- #define uip_ipaddr_copy( dest, src ) ( ((unsigned long*)dest)[ 0 ] = ((unsigned long *)src)[ 0 ] )\r
+ #define uip_ipaddr_copy( dest, src ) \\r
+ do \\r
+ { \\r
+ (dest)->u8[0] = (src)->u8[0]; \\r
+ (dest)->u8[1] = (src)->u8[1]; \\r
+ (dest)->u8[2] = (src)->u8[2]; \\r
+ (dest)->u8[3] = (src)->u8[3]; \\r
+ } while( 0 ) \r
#endif\r
\r
/**\r