diff options
author | Andrew Weintraub <asweintraub@google.com> | 2017-11-29 23:27:10 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-11-29 23:27:10 +0000 |
commit | 98b56332e9b5c04cde680301a8b0685590c3b922 (patch) | |
tree | 97b1f6f67b60678f37844322ccb0a657f9b3266c /testing/image_diff/image_diff_png.cpp | |
parent | 02f46ae70560c4bd70950faa1496e0c6b244ff8d (diff) | |
download | pdfium-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.cpp | 7 |
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 { |