summaryrefslogtreecommitdiff
path: root/testing/image_diff/image_diff_png.cpp
diff options
context:
space:
mode:
authorAndrew Weintraub <asweintraub@google.com>2017-11-29 23:27:10 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-11-29 23:27:10 +0000
commit98b56332e9b5c04cde680301a8b0685590c3b922 (patch)
tree97b1f6f67b60678f37844322ccb0a657f9b3266c /testing/image_diff/image_diff_png.cpp
parent02f46ae70560c4bd70950faa1496e0c6b244ff8d (diff)
downloadpdfium-98b56332e9b5c04cde680301a8b0685590c3b922.tar.xz
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 <thestig@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'testing/image_diff/image_diff_png.cpp')
-rw-r--r--testing/image_diff/image_diff_png.cpp7
1 files changed, 6 insertions, 1 deletions
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 <string>
#include "third_party/base/logging.h"
-#include "third_party/libpng16/png.h"
#include "third_party/zlib/zlib.h"
+#ifdef USE_SYSTEM_LIBPNG
+#include <png.h>
+#else
+#include "third_party/libpng16/png.h"
+#endif
+
namespace image_diff_png {
namespace {