Use system zlib on Android, too
This commit is contained in:
@@ -238,10 +238,10 @@
|
|||||||
* data in PNG files.
|
* data in PNG files.
|
||||||
*/
|
*/
|
||||||
+/* WTF, surely this should depend explicitly on whether using the system or
|
+/* WTF, surely this should depend explicitly on whether using the system or
|
||||||
+ * internal zlib, not on OS... But yeah, so maybe MacOSX (and iOS) are the only OSes for which
|
+ * internal zlib, not on OS... But yeah, so maybe MacOSX, iOS and Android are the only OSes for which
|
||||||
+ * we use a system zlib but internal libpng, at least by default.
|
+ * we use a system zlib but internal libpng, at least by default.
|
||||||
+ */
|
+ */
|
||||||
+#if defined MACOSX || defined IOS
|
+#if defined MACOSX || defined IOS || defined ANDROID
|
||||||
#include "zlib.h"
|
#include "zlib.h"
|
||||||
+#else
|
+#else
|
||||||
+#include <external/zlib/zlib.h>
|
+#include <external/zlib/zlib.h>
|
||||||
@@ -255,7 +255,7 @@
|
|||||||
* of files at once by typing "pngtest -m file1.png file2.png ..."
|
* of files at once by typing "pngtest -m file1.png file2.png ..."
|
||||||
*/
|
*/
|
||||||
|
|
||||||
+#if defined MACOSX || defined IOS
|
+#if defined MACOSX || defined IOS || defined ANDROID
|
||||||
#include "zlib.h"
|
#include "zlib.h"
|
||||||
+#else
|
+#else
|
||||||
+#include <external/zlib/zlib.h>
|
+#include <external/zlib/zlib.h>
|
||||||
@@ -271,7 +271,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
-#include "zlib.h" /* For crc32 */
|
-#include "zlib.h" /* For crc32 */
|
||||||
+#if defined MACOSX || defined IOS
|
+#if defined MACOSX || defined IOS || defined ANDROID
|
||||||
+#include "zlib.h"
|
+#include "zlib.h"
|
||||||
+#else
|
+#else
|
||||||
+#include <external/zlib/zlib.h>
|
+#include <external/zlib/zlib.h>
|
||||||
|
Reference in New Issue
Block a user