#ifndef _APPLE_ENDIAN_H1#define _APPLE_ENDIAN_H23/*4* Shims to make Apple's endian headers and macros compatible5* with <sys/endian.h> (which is awful).6*/78# include <libkern/OSByteOrder.h>910# define _LITTLE_ENDIAN 0x1234567811# define _BIG_ENDIAN 0x876543211213# ifdef __LITTLE_ENDIAN__14# define _BYTE_ORDER _LITTLE_ENDIAN15# endif16# ifdef __BIG_ENDIAN__17# define _BYTE_ORDER _BIG_ENDIAN18# endif1920# define htole32(x) OSSwapHostToLittleInt32(x)21# define le32toh(x) OSSwapLittleToHostInt32(x)2223# define htobe32(x) OSSwapHostToBigInt32(x)24# define be32toh(x) OSSwapBigToHostInt32(x)2526#endif /* _APPLE_ENDIAN_H */272829