diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2014-03-18 01:49:07 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2014-03-18 01:49:07 +0000 |
commit | 3b9377e5c757a1d6147a4855f4a70d8ccdb1f730 (patch) | |
tree | 0ccc08976e48d55cb55a10ed58046c6ebc2ebcf8 /Build/source | |
parent | 8475fd41b6050445aceb9f9ed9b08003fc667bc3 (diff) |
Use PDF_VERSION_MAX instead of an explicit number
git-svn-id: svn://tug.org/texlive/trunk@33212 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source')
-rw-r--r-- | Build/source/texk/dvipdfm-x/ChangeLog | 4 | ||||
-rw-r--r-- | Build/source/texk/dvipdfm-x/pdfcolor.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/Build/source/texk/dvipdfm-x/ChangeLog b/Build/source/texk/dvipdfm-x/ChangeLog index f02fe883f78..b2dd3f2c4b6 100644 --- a/Build/source/texk/dvipdfm-x/ChangeLog +++ b/Build/source/texk/dvipdfm-x/ChangeLog @@ -1,3 +1,7 @@ +2014-03-18 Akira Kakuto <kakuto@fuk.kindai.ac.jp> + + * pdfcolor.c: Use PDF_VERSION_MAX instead of an explicit number. + 2014-03-17 Karl Berry <karl@tug.org> * configure.ac: version 20140317 for TeX Live 2014. diff --git a/Build/source/texk/dvipdfm-x/pdfcolor.c b/Build/source/texk/dvipdfm-x/pdfcolor.c index d6d3de66f17..5d1c8221b64 100644 --- a/Build/source/texk/dvipdfm-x/pdfcolor.c +++ b/Build/source/texk/dvipdfm-x/pdfcolor.c @@ -37,7 +37,7 @@ #include "pdfdev.h" #include "pdfcolor.h" - +#include "pdflimits.h" static int verbose = 0; void @@ -554,7 +554,7 @@ iccp_version_supported (int major, int minor) int pdf_ver; pdf_ver = pdf_get_version(); - if (pdf_ver < 6) { + if (pdf_ver <= PDF_VERSION_MAX) { if (icc_versions[pdf_ver].major < major) return 0; else if (icc_versions[pdf_ver].major == major && |