/[lwip]/lwip/src/include/ipv4/lwip/inet.h
ViewVC logotype

Diff of /lwip/src/include/ipv4/lwip/inet.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7 by likewise, Mon Jul 7 09:11:17 2003 UTC revision 1.8 by likewise, Fri Nov 14 14:56:30 2003 UTC
# Line 62  u8_t *inet_ntoa(u32_t addr); /* returns Line 62  u8_t *inet_ntoa(u32_t addr); /* returns
62  #endif /* ntohl */  #endif /* ntohl */
63    
64  #if BYTE_ORDER == BIG_ENDIAN  #if BYTE_ORDER == BIG_ENDIAN
65  #define htons(n) (n)  #define htons(x) (x)
66  #define ntohs(n) (n)  #define ntohs(x) (x)
67  #define htonl(n) (n)  #define htonl(x) (x)
68  #define ntohl(n) (n)  #define ntohl(x) (x)
69  #else  #else
70  #ifdef LWIP_PREFIX_BYTEORDER_FUNCS  #ifdef LWIP_PREFIX_BYTEORDER_FUNCS
71  /* workaround for naming collisions on some platforms */  /* workaround for naming collisions on some platforms */
# Line 74  u8_t *inet_ntoa(u32_t addr); /* returns Line 74  u8_t *inet_ntoa(u32_t addr); /* returns
74  #define htonl lwip_htonl  #define htonl lwip_htonl
75  #define ntohl lwip_ntohl  #define ntohl lwip_ntohl
76  #endif  #endif
77  u16_t htons(u16_t n);  u16_t htons(u16_t x);
78  u16_t ntohs(u16_t n);  u16_t ntohs(u16_t x);
79  u32_t htonl(u32_t n);  u32_t htonl(u32_t x);
80  u32_t ntohl(u32_t n);  u32_t ntohl(u32_t x);
81  #endif  #endif
82    
83  #endif /* __LWIP_INET_H__ */  #endif /* __LWIP_INET_H__ */

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26