From 0fafb4fc5009418bff9578f8da940a980ee5b28d Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Wed, 24 May 2017 08:40:49 +0200 Subject: core: allow building against system lcms2 In a way similar to the existing USE_SYSTEM_ZLIB. The default is of course still the bundled lcms2. Change-Id: I219b50854b3c7870b0f4d94574ba39f6cb26f556 Reviewed-on: https://pdfium-review.googlesource.com/5870 Reviewed-by: Lei Zhang Commit-Queue: Lei Zhang --- core/fxcodec/codec/fx_codec_icc.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'core/fxcodec/codec/fx_codec_icc.cpp') diff --git a/core/fxcodec/codec/fx_codec_icc.cpp b/core/fxcodec/codec/fx_codec_icc.cpp index 7592c053c5..ee562f0e92 100644 --- a/core/fxcodec/codec/fx_codec_icc.cpp +++ b/core/fxcodec/codec/fx_codec_icc.cpp @@ -6,7 +6,12 @@ #include "core/fxcodec/codec/codec_int.h" #include "core/fxcodec/fx_codec.h" + +#if defined(USE_SYSTEM_LCMS2) +#include +#else #include "third_party/lcms2-2.6/include/lcms2.h" +#endif struct CLcmsCmm { cmsHTRANSFORM m_hTransform; -- cgit v1.2.3