summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
Diffstat (limited to 'testing')
-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 {