mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-29 18:31:35 +02:00
19 lines
488 B
Diff
19 lines
488 B
Diff
--- 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;
|