From 2100b4ce152e9c70b3ce8760112d5a24ead4e52d Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Fri, 3 Apr 2020 21:34:45 -0400 Subject: Allow qpdf to be built on systems without wchar_t (fixes #406) --- libqpdf/QUtil.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libqpdf') 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 realmain) +QUtil::call_main_from_wmain(int argc, wchar_t* argv[], + std::function 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