aboutsummaryrefslogtreecommitdiffstats
path: root/include/qpdf/QUtil.hh
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2020-04-04 03:34:45 +0200
committerJay Berkenbilt <ejb@ql.org>2020-04-04 03:39:44 +0200
commit2100b4ce152e9c70b3ce8760112d5a24ead4e52d (patch)
tree0dc298af6870f9635dd4b52b9ec8a528b01e01f6 /include/qpdf/QUtil.hh
parent6a4117add996eeaaf330bd700e30380295daab93 (diff)
downloadqpdf-2100b4ce152e9c70b3ce8760112d5a24ead4e52d.tar.zst
Allow qpdf to be built on systems without wchar_t (fixes #406)
Diffstat (limited to 'include/qpdf/QUtil.hh')
-rw-r--r--include/qpdf/QUtil.hh8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/qpdf/QUtil.hh b/include/qpdf/QUtil.hh
index fa6a76aa..2066cfef 100644
--- a/include/qpdf/QUtil.hh
+++ b/include/qpdf/QUtil.hh
@@ -357,12 +357,20 @@ namespace QUtil
QPDF_DLL
std::vector<int> parse_numrange(char const* range, int max);
+#ifndef QPDF_NO_WCHAR_T
+ // If you are building qpdf on a stripped down system that doesn't
+ // have wchar_t, such as may be the case in some embedded
+ // environments, you may define QPDF_NO_WCHAR_T in your build.
+ // This symbol is never defined automatically. Search for wchar_t
+ // in qpdf's top-level README.md file for details.
+
// Take an argv array consisting of wchar_t, as when wmain is
// invoked, convert all UTF-16 encoded strings to UTF-8, and call
// another main.
QPDF_DLL
int call_main_from_wmain(int argc, wchar_t* argv[],
std::function<int(int, char*[])> realmain);
+#endif // QPDF_NO_WCHAR_T
};
#endif // QUTIL_HH