| Index: src/codec/SkPngCodec.cpp
|
| diff --git a/src/codec/SkPngCodec.cpp b/src/codec/SkPngCodec.cpp
|
| index 54a82c4b278c97421daee021303d25776d3bf6cc..e99e5a4f22e288ce12e3f4bfb84585078d629da0 100644
|
| --- a/src/codec/SkPngCodec.cpp
|
| +++ b/src/codec/SkPngCodec.cpp
|
| @@ -18,8 +18,12 @@
|
| #include "SkSwizzler.h"
|
| #include "SkTemplates.h"
|
|
|
| +#ifndef __has_include
|
| + #define __has_include(x) 0
|
| +#endif
|
| +
|
| // png_struct::read_filter[] was added in libpng 1.5.7.
|
| -#if defined(__SSE2__) && PNG_LIBPNG_VER >= 10507
|
| +#if defined(__SSE2__) && PNG_LIBPNG_VER >= 10507 && __has_include("pngstruct.h")
|
| #include "pngstruct.h"
|
|
|
| extern "C" void sk_png_init_filter_functions_sse2(png_structp png, unsigned int bpp) {
|
|
|