Add FPDFAPIJPEG_ prefix to more libjpeg functions
authorTom Sepez <tsepez@chromium.org>
Mon, 19 Oct 2015 18:49:57 +0000 (11:49 -0700)
committerTom Sepez <tsepez@chromium.org>
Mon, 19 Oct 2015 18:49:57 +0000 (11:49 -0700)
commit1b5084321ed924ad3fcc437c3effc81baafd18ac
treea5b40c3f3f3d4e9119c9ac1510d819d155337e2b
parent894d1cd3f56b1c8c33c5a60ebfec14384e5002d0
Add FPDFAPIJPEG_ prefix to more libjpeg functions

Original patch by Evangelos Foutras.

Chromium built with use_system_libjpeg=1 can mistakenly try to use
symbols exported by the libjpeg library that's bundled with pdfium.

These name conflicts result in failure to encode the contents of a
canvas element using toDataURL('image/jpeg').

BUG=505226
R=tsepez@chromium.org

Review URL: https://codereview.chromium.org/1409243004 .
core/include/thirdparties/libjpeg/jpeglib.h
third_party/libjpeg/jpeglib.h