From dcdaee3db2a5347bb0468599d920953558259ac6 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 4 Jun 2019 21:13:47 +0300 Subject: [PATCH] Beta version 1.7.4: Fix build for Xcode. --- Telegram/SourceFiles/platform/linux/info_linux.h | 2 ++ Telegram/SourceFiles/platform/mac/info_mac.h | 2 ++ Telegram/SourceFiles/platform/mac/info_mac.mm | 1 + Telegram/SourceFiles/platform/win/info_win.h | 2 ++ Telegram/SourceFiles/window/window_outdated_bar.cpp | 2 +- 5 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/platform/linux/info_linux.h b/Telegram/SourceFiles/platform/linux/info_linux.h index f4bbc51a0..f909003a3 100644 --- a/Telegram/SourceFiles/platform/linux/info_linux.h +++ b/Telegram/SourceFiles/platform/linux/info_linux.h @@ -7,6 +7,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL */ #pragma once +#include "platform/platform_info.h" + namespace Platform { inline constexpr bool IsLinux() { diff --git a/Telegram/SourceFiles/platform/mac/info_mac.h b/Telegram/SourceFiles/platform/mac/info_mac.h index 5f92a21dd..befd1b4d7 100644 --- a/Telegram/SourceFiles/platform/mac/info_mac.h +++ b/Telegram/SourceFiles/platform/mac/info_mac.h @@ -7,6 +7,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL */ #pragma once +#include "platform/platform_info.h" + namespace Platform { inline constexpr bool IsMac() { diff --git a/Telegram/SourceFiles/platform/mac/info_mac.mm b/Telegram/SourceFiles/platform/mac/info_mac.mm index f1c52e649..1a6504f1c 100644 --- a/Telegram/SourceFiles/platform/mac/info_mac.mm +++ b/Telegram/SourceFiles/platform/mac/info_mac.mm @@ -7,6 +7,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL */ #include "platform/mac/info_mac.h" +#include "platform/platform_info.h" #include "platform/mac/mac_utilities.h" #include diff --git a/Telegram/SourceFiles/platform/win/info_win.h b/Telegram/SourceFiles/platform/win/info_win.h index 8c2d97488..a399684b9 100644 --- a/Telegram/SourceFiles/platform/win/info_win.h +++ b/Telegram/SourceFiles/platform/win/info_win.h @@ -7,6 +7,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL */ #pragma once +#include "platform/platform_info.h" + namespace Platform { inline constexpr bool IsWindows() { diff --git a/Telegram/SourceFiles/window/window_outdated_bar.cpp b/Telegram/SourceFiles/window/window_outdated_bar.cpp index a179f397c..37649416b 100644 --- a/Telegram/SourceFiles/window/window_outdated_bar.cpp +++ b/Telegram/SourceFiles/window/window_outdated_bar.cpp @@ -26,7 +26,7 @@ class Bar : public Ui::RpWidget { public: Bar(not_null parent, QDate date); - int resizeGetHeight(int newWidth); + int resizeGetHeight(int newWidth) override; rpl::producer<> hideClicks() const;