Sfoglia il codice sorgente

change android macro

blueloveTH 3 anni fa
parent
commit
95c67f4b4e
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  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;