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 */ |
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__ */ |