--- a/libexfat/platform.h	2015-08-17 23:32:56.701648786 +0200
+++ b/libexfat/platform.h	2015-08-17 23:33:04.219648224 +0200
@@ -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 */
