Fix htonl and htons.
This commit is contained in:
cognet 2004-08-02 12:24:18 +00:00
parent 95c147809b
commit 9cc4b572ec

View File

@ -56,8 +56,8 @@
#define _QUAD_LOWWORD 0
#define __ntohl(x) (__bswap32(x))
#define __ntohs(x) (__bswap16(x))
#define __htonl(x) (__bswap16(x))
#define __htons(x) (__bswap32(x))
#define __htonl(x) (__bswap32(x))
#define __htons(x) (__bswap16(x))
static __inline __uint64_t
__bswap64(__uint64_t _x)