diff options
author | Jay Berkenbilt <ejb@ql.org> | 2020-04-04 03:34:45 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2020-04-04 03:39:44 +0200 |
commit | 2100b4ce152e9c70b3ce8760112d5a24ead4e52d (patch) | |
tree | 0dc298af6870f9635dd4b52b9ec8a528b01e01f6 /libqpdf/QUtil.cc | |
parent | 6a4117add996eeaaf330bd700e30380295daab93 (diff) | |
download | qpdf-2100b4ce152e9c70b3ce8760112d5a24ead4e52d.tar.zst |
Allow qpdf to be built on systems without wchar_t (fixes #406)
Diffstat (limited to 'libqpdf/QUtil.cc')
-rw-r--r-- | libqpdf/QUtil.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libqpdf/QUtil.cc b/libqpdf/QUtil.cc index 04aaf51f..8717e148 100644 --- a/libqpdf/QUtil.cc +++ b/libqpdf/QUtil.cc @@ -2342,8 +2342,10 @@ QUtil::possible_repaired_encodings(std::string supplied) return t; } +#ifndef QPDF_NO_WCHAR_T int -QUtil::call_main_from_wmain(int argc, wchar_t* argv[], std::function<int(int, char*[])> realmain) +QUtil::call_main_from_wmain(int argc, wchar_t* argv[], + std::function<int(int, char*[])> realmain) { // argv contains UTF-16-encoded strings with a 16-bit wchar_t. // Convert this to UTF-8-encoded strings for compatibility with @@ -2376,3 +2378,4 @@ QUtil::call_main_from_wmain(int argc, wchar_t* argv[], std::function<int(int, ch new_argv[argc] = 0; return realmain(argc, new_argv); } +#endif // QPDF_NO_WCHAR_T |