Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Unified Diff: src/codec/SkPngCodec.cpp

Issue 1689053002: CMakeLists.txt demo (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: move inside gif Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/codec/SkJpegCodec.cpp ('k') | tools/BUILD.public.expected » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « src/codec/SkJpegCodec.cpp ('k') | tools/BUILD.public.expected » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698