aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2019-06-22 00:38:03 +0200
committerJay Berkenbilt <ejb@ql.org>2019-06-22 04:29:31 +0200
commitc6cfd6450334cc09d3a984d710e3fcc26b809f0f (patch)
tree8a2226e216577b87aebd03f8901e911a558ec49a /include
parentbd8918fffc73803698f02021543a14445ba17e0b (diff)
downloadqpdf-c6cfd6450334cc09d3a984d710e3fcc26b809f0f.tar.zst
Rename QUtil::strcasecmp to QUtil::str_compare_nocase (fixes #242)
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/QUtil.hh5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/qpdf/QUtil.hh b/include/qpdf/QUtil.hh
index afdd2033..9f76f738 100644
--- a/include/qpdf/QUtil.hh
+++ b/include/qpdf/QUtil.hh
@@ -305,8 +305,11 @@ namespace QUtil
QPDF_DLL
std::list<std::string> read_lines_from_file(std::istream&);
+ // This used to be called strcasecmp, but that is a macro on some
+ // platforms, so we have to give it a name that is not likely to
+ // be a macro anywhere.
QPDF_DLL
- int strcasecmp(char const *, char const *);
+ int str_compare_nocase(char const *, char const *);
// These routines help the tokenizer recognize certain character
// classes without using ctype, which we avoid because of locale