summaryrefslogtreecommitdiff
path: root/third_party/libpng16/pngprefix.h
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2016-03-02 16:55:26 -0800
committerTom Sepez <tsepez@chromium.org>2016-03-02 16:55:26 -0800
commitd87b20e1ae765cb65281c5bd7c12fc41e8a86780 (patch)
treeb2f5e373b980d9ed8c39533827c892ce2a312faf /third_party/libpng16/pngprefix.h
parent91f7f3fa6a6d62ed0ce819c3286b0ffe6eddedbc (diff)
downloadpdfium-d87b20e1ae765cb65281c5bd7c12fc41e8a86780.tar.xz
Rename png_ functions conflicting with chrome.
Part of the work required to ship XFA with chrome. BUG=pdfium:396 R=dsinclair@chromium.org Review URL: https://codereview.chromium.org/1763493002 .
Diffstat (limited to 'third_party/libpng16/pngprefix.h')
-rw-r--r--third_party/libpng16/pngprefix.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/third_party/libpng16/pngprefix.h b/third_party/libpng16/pngprefix.h
new file mode 100644
index 0000000000..8eab668297
--- /dev/null
+++ b/third_party/libpng16/pngprefix.h
@@ -0,0 +1,17 @@
+// Copyright 2016 PDFium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef PNGPREFIX_H
+#define PNGPREFIX_H
+
+// The purpose of this file is to rename conflicting functions
+// when this version of libpng and chromium's version of it are
+// both simultaneously present.
+
+#define png_get_uint_32 PDFIUM_png_get_uint_32
+#define png_get_uint_16 PDFIUM_png_get_uint_16
+#define png_get_int_32 PDFIUM_png_get_int_32
+#define png_get_int_16 PDFIUM_png_get_int_16
+
+#endif // PNGPREFIX_H