Parcourir la source

change android macro

blueloveTH il y a 3 ans
Parent
commit
95c67f4b4e
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  1. 5 0
      src/common.h

+ 5 - 0
src/common.h

@@ -29,7 +29,12 @@
 
 #define PK_VERSION				"0.9.3"
 #define PK_EXTRA_CHECK 			0
+
+#if defined(__ANDROID__) && __ANDROID_API__ <= 22
+#define PK_ENABLE_FILEIO 		0
+#else
 #define PK_ENABLE_FILEIO 		1
+#endif
 
 #if defined(__EMSCRIPTEN__) || defined(__arm__) || defined(__i386__)
 typedef int32_t i64;