From 98b56332e9b5c04cde680301a8b0685590c3b922 Mon Sep 17 00:00:00 2001 From: Andrew Weintraub Date: Wed, 29 Nov 2017 23:27:10 +0000 Subject: Allow building pdfium against the system version of libpng. Bug: Change-Id: I0c930ca30637f58af3b60ed8f1383bd9234a1723 Reviewed-on: https://pdfium-review.googlesource.com/19850 Commit-Queue: Lei Zhang Reviewed-by: Lei Zhang --- testing/image_diff/image_diff_png.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'testing/image_diff') diff --git a/testing/image_diff/image_diff_png.cpp b/testing/image_diff/image_diff_png.cpp index 56be539057..48b5ae17b4 100644 --- a/testing/image_diff/image_diff_png.cpp +++ b/testing/image_diff/image_diff_png.cpp @@ -17,9 +17,14 @@ #include #include "third_party/base/logging.h" -#include "third_party/libpng16/png.h" #include "third_party/zlib/zlib.h" +#ifdef USE_SYSTEM_LIBPNG +#include +#else +#include "third_party/libpng16/png.h" +#endif + namespace image_diff_png { namespace { -- cgit v1.2.3