diff options
author | Jay Berkenbilt <ejb@ql.org> | 2020-04-06 17:20:11 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2020-04-06 17:23:02 +0200 |
commit | c996f4ac3379f44cd14fa38049ed45031498eb84 (patch) | |
tree | 8e68bdf61a471b587c56efe32ca2cbfc5dfbeec3 | |
parent | aec45e2c4f65fc4b29e395b1da4402a04ff4f0c0 (diff) | |
download | qpdf-c996f4ac3379f44cd14fa38049ed45031498eb84.tar.zst |
Don't include <cwchar> if not building with wchar
-rw-r--r-- | libqpdf/QUtil.cc | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/libqpdf/QUtil.cc b/libqpdf/QUtil.cc index 94132fa5..c3c4f12f 100644 --- a/libqpdf/QUtil.cc +++ b/libqpdf/QUtil.cc @@ -21,14 +21,16 @@ #include <string.h> #include <fcntl.h> #include <memory> -#include <cwchar> +#ifndef QPDF_NO_WCHAR_T +# include <cwchar> +#endif #ifdef _WIN32 -#include <windows.h> -#include <direct.h> -#include <io.h> +# include <windows.h> +# include <direct.h> +# include <io.h> #else -#include <unistd.h> -#include <sys/stat.h> +# include <unistd.h> +# include <sys/stat.h> #endif // First element is 128 |