blob: 9d032e49530f81aab7f940a6a70350cef2cb6e88 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
--- a/libexfat/platform.h.orig
+++ b/libexfat/platform.h
@@ -57,7 +57,14 @@
#define EXFAT_BIG_ENDIAN _BIG_ENDIAN
#else
-#error Unknown 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
#endif /* ifndef PLATFORM_H_INCLUDED */
|