--- a/libexfat/byteorder.h.orig +++ b/libexfat/byteorder.h @@ -74,7 +74,14 @@ #endif #else -#error No byte order macros available for your platform +#include +#include +#define exfat_bswap16(x) bswap_16(x) +#define exfat_bswap32(x) bswap_32(x) +#define exfat_bswap64(x) bswap_64(x) +#define EXFAT_BYTE_ORDER __BYTE_ORDER +#define EXFAT_LITTLE_ENDIAN __LITTLE_ENDIAN +#define EXFAT_BIG_ENDIAN __BIG_ENDIAN #endif typedef struct { uint16_t __u16; } le16_t;