OSDN Git Service

Handle 64-bit offsets correctly on Android
[android-x86/external-exfat.git] / libexfat / platform.h
index 1537283..f3429ae 100644 (file)
@@ -22,7 +22,7 @@
 #ifndef PLATFORM_H_INCLUDED
 #define PLATFORM_H_INCLUDED
 
-#if defined(__GLIBC__)
+#if defined(__GLIBC__) || defined (__ANDROID__)
 
 #include <endian.h>
 #include <byteswap.h>
@@ -38,7 +38,7 @@
 #define __LITTLE_ENDIAN LITTLE_ENDIAN
 #define __BIG_ENDIAN BIG_ENDIAN
 
-#elif defined(__ANDROID__) || defined(__FreeBSD__) || defined(__DragonFlyBSD__) || defined(__NetBSD__)
+#elif defined(__FreeBSD__) || defined(__DragonFlyBSD__) || defined(__NetBSD__)
 
 #include <sys/endian.h>
 #define bswap_16(x) bswap16(x)