summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--third_party/BUILD.gn1
-rw-r--r--third_party/libtiff/tiffvers.h9
-rw-r--r--third_party/third_party.gyp1
3 files changed, 11 insertions, 0 deletions
diff --git a/third_party/BUILD.gn b/third_party/BUILD.gn
index ed8037b385..0ad92abe98 100644
--- a/third_party/BUILD.gn
+++ b/third_party/BUILD.gn
@@ -306,6 +306,7 @@ if (pdf_enable_xfa) {
]
sources = [
"libtiff/tiffiop.h",
+ "libtiff/tiffvers.h",
"libtiff/tif_aux.c",
"libtiff/tif_close.c",
"libtiff/tif_codec.c",
diff --git a/third_party/libtiff/tiffvers.h b/third_party/libtiff/tiffvers.h
new file mode 100644
index 0000000000..e965814b3d
--- /dev/null
+++ b/third_party/libtiff/tiffvers.h
@@ -0,0 +1,9 @@
+#define TIFFLIB_VERSION_STR "LIBTIFF, Version 4.0.6\nCopyright (c) 1988-1996 Sam Leffler\nCopyright (c) 1991-1996 Silicon Graphics, Inc."
+/*
+ * This define can be used in code that requires
+ * compilation-related definitions specific to a
+ * version or versions of the library. Runtime
+ * version checking should be done based on the
+ * string returned by TIFFGetVersion.
+ */
+#define TIFFLIB_VERSION 20150912
diff --git a/third_party/third_party.gyp b/third_party/third_party.gyp
index b57009c43e..54b6aa31a2 100644
--- a/third_party/third_party.gyp
+++ b/third_party/third_party.gyp
@@ -330,6 +330,7 @@
'type': 'static_library',
'sources': [
'libtiff/tiffiop.h',
+ 'libtiff/tiffvers.h',
'libtiff/tif_aux.c',
'libtiff/tif_close.c',
'libtiff/tif_codec.c',