by detaro · 8y ago · 0 comments
Put another way, Pike is saying that libc should have implemented be16toh() like:
# define be16toh(x) ( (((char*)x)[1]<<0) | (((char*)x)[0]<<8) )
instead of how GNU libc implemented it: # if __BYTE_ORDER == __LITTLE_ENDIAN
# define be16toh(x) __bswap_16 (x)
# else
# define be16toh(x) __uint16_identity (x)
# endif
But that complaint doesn't affect programs that call be16toh().