mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-29 10:21:10 +02:00
19 lines
481 B
Diff
19 lines
481 B
Diff
--- 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 */
|