blob: c5f5bb6d7a99da8e87e2e6401a84faf68a94fc48 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
--- 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 <endian.h>
+#include <byteswap.h>
+#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;
|