2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Linux ARM compile fixes (#4399)

This fixes errors when compiling in ARM
This commit is contained in:
Marco Trevisan
2018-03-09 21:48:47 +01:00
committed by John Preston
parent def21367a3
commit 9dc03c4f0f
16 changed files with 40 additions and 15 deletions

View File

@@ -545,7 +545,11 @@ const dump &operator<<(const dump &stream, const wchar_t *str) {
if (!ReportFile) return stream;
for (int i = 0, l = wcslen(str); i < l; ++i) {
if (str[i] >= 0 && str[i] < 128) {
if (
#if !defined(__WCHAR_UNSIGNED__)
str[i] >= 0 &&
#endif
str[i] < 128) {
SafeWriteChar(char(str[i]));
} else {
SafeWriteChar('?');