Index: src/codec/SkPngCodec.cpp |
diff --git a/src/codec/SkPngCodec.cpp b/src/codec/SkPngCodec.cpp |
index 9691f12d4d6b210245d1a0992b5853a20b5fb3cc..155cbacf4db0997bd9a4fcd94ad0b95013b3d220 100644 |
--- a/src/codec/SkPngCodec.cpp |
+++ b/src/codec/SkPngCodec.cpp |
@@ -17,7 +17,8 @@ |
#include "SkSwizzler.h" |
#include "SkTemplates.h" |
-#if defined(__SSE2__) |
+// png_struct::read_filter[] was added in libpng 1.5.7. |
+#if defined(__SSE2__) && PNG_LIBPNG_VER >= 10507 |
#include "pngstruct.h" |
extern "C" void sk_png_init_filter_functions_sse2(png_structp png, unsigned int bpp) { |