From 36c5b170e722362d4b5f7cb6e4e0099ed227a307 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Thu, 13 Apr 2017 10:09:06 +0200 Subject: core: allow building against system zlib In a way similar to the existing USE_SYSTEM_LIBJPEG. The default is of course still the DEPS-based zlib checkout. Change-Id: I649e75beb1a19c4cf7abda42fa10ebe5babfe946 Reviewed-on: https://pdfium-review.googlesource.com/4070 Reviewed-by: Lei Zhang Commit-Queue: Lei Zhang --- core/fxcodec/codec/fx_codec_flate.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'core') diff --git a/core/fxcodec/codec/fx_codec_flate.cpp b/core/fxcodec/codec/fx_codec_flate.cpp index ef78248217..3747b20cc3 100644 --- a/core/fxcodec/codec/fx_codec_flate.cpp +++ b/core/fxcodec/codec/fx_codec_flate.cpp @@ -15,7 +15,12 @@ #include "core/fxcrt/fx_ext.h" #include "third_party/base/numerics/safe_conversions.h" #include "third_party/base/ptr_util.h" + +#if defined(USE_SYSTEM_ZLIB) +#include +#else #include "third_party/zlib/zlib.h" +#endif extern "C" { -- cgit v1.2.3