1 #ifdef __APPLE__ 2 3 # include <machine/endian.h> 4 # include <libkern/OSByteOrder.h> 5 6 # define htobe16(x) OSSwapHostToBigInt16(x) 7 # define htole16(x) OSSwapHostToLittleInt16(x) 8 # define be16toh(x) OSSwapBigToHostInt16(x) 9 # define le16toh(x) OSSwapLittleToHostInt16(x) 10 11 # define htobe32(x) OSSwapHostToBigInt32(x) 12 # define htole32(x) OSSwapHostToLittleInt32(x) 13 # define be32toh(x) OSSwapBigToHostInt32(x) 14 # define le32toh(x) OSSwapLittleToHostInt32(x) 15 16 # define htobe64(x) OSSwapHostToBigInt64(x) 17 # define htole64(x) OSSwapHostToLittleInt64(x) 18 # define be64toh(x) OSSwapBigToHostInt64(x) 19 # define le64toh(x) OSSwapLittleToHostInt64(x) 20 21 #else 22 # include_next <endian.h> 23 #endif 24
This page was automatically generated by LXR 0.3.1. • OpenWrt