From fd53385c1f8d4df2209e6baef168d925de103872 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 9 Oct 2018 21:58:56 +0300 Subject: [PATCH] Version 1.4.1: Fix build for old OS X. --- Telegram/SourceFiles/base/base_pch.h | 4 ---- Telegram/SourceFiles/base/basic_types.h | 3 ++- Telegram/SourceFiles/export/export_pch.h | 4 ---- Telegram/SourceFiles/stdafx.h | 4 ---- Telegram/SourceFiles/storage/storage_pch.h | 4 ---- Telegram/gyp/telegram_mac.gypi | 3 +++ 6 files changed, 5 insertions(+), 17 deletions(-) diff --git a/Telegram/SourceFiles/base/base_pch.h b/Telegram/SourceFiles/base/base_pch.h index 6fd488959..91cfe95ee 100644 --- a/Telegram/SourceFiles/base/base_pch.h +++ b/Telegram/SourceFiles/base/base_pch.h @@ -14,10 +14,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #include #include -#if QT_VERSION < QT_VERSION_CHECK(5, 5, 0) -#define OS_MAC_OLD -#endif // QT_VERSION < 5.5.0 - #include #include diff --git a/Telegram/SourceFiles/base/basic_types.h b/Telegram/SourceFiles/base/basic_types.h index 08c6218fb..c32a4b448 100644 --- a/Telegram/SourceFiles/base/basic_types.h +++ b/Telegram/SourceFiles/base/basic_types.h @@ -13,6 +13,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #include "base/functors.h" #include +#include #include #include @@ -50,7 +51,7 @@ using TimeId = int32; // Define specializations for QByteArray for Qt 5.3.2, because // QByteArray in Qt 5.3.2 doesn't declare "pointer" subtype. -#ifdef OS_MAC_OLD +#if QT_VERSION < QT_VERSION_CHECK(5, 5, 0) namespace gsl { template <> diff --git a/Telegram/SourceFiles/export/export_pch.h b/Telegram/SourceFiles/export/export_pch.h index 475eb75d6..8c420524a 100644 --- a/Telegram/SourceFiles/export/export_pch.h +++ b/Telegram/SourceFiles/export/export_pch.h @@ -17,10 +17,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #include #include -#if QT_VERSION < QT_VERSION_CHECK(5, 5, 0) -#define OS_MAC_OLD -#endif // QT_VERSION < 5.5.0 - #include #include diff --git a/Telegram/SourceFiles/stdafx.h b/Telegram/SourceFiles/stdafx.h index 77be48192..f19903e50 100644 --- a/Telegram/SourceFiles/stdafx.h +++ b/Telegram/SourceFiles/stdafx.h @@ -36,10 +36,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #pragma warning(pop) #endif // __clang__ || _MSC_VER >= 1914 -#if QT_VERSION < QT_VERSION_CHECK(5, 5, 0) -#define OS_MAC_OLD -#endif // QT_VERSION < 5.5.0 - #ifdef OS_MAC_STORE #define MAC_USE_BREAKPAD #endif // OS_MAC_STORE diff --git a/Telegram/SourceFiles/storage/storage_pch.h b/Telegram/SourceFiles/storage/storage_pch.h index 11e41c6cf..64d635c3d 100644 --- a/Telegram/SourceFiles/storage/storage_pch.h +++ b/Telegram/SourceFiles/storage/storage_pch.h @@ -12,10 +12,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #include #include -#if QT_VERSION < QT_VERSION_CHECK(5, 5, 0) -#define OS_MAC_OLD -#endif // QT_VERSION < 5.5.0 - #include #include diff --git a/Telegram/gyp/telegram_mac.gypi b/Telegram/gyp/telegram_mac.gypi index 0195ddb0b..68591c439 100644 --- a/Telegram/gyp/telegram_mac.gypi +++ b/Telegram/gyp/telegram_mac.gypi @@ -37,6 +37,9 @@ }, }, }], [ 'build_macold', { + 'defines': [ + 'OS_MAC_OLD', + ], 'xcode_settings': { 'OTHER_CPLUSPLUSFLAGS': [ '-nostdinc++' ], 'OTHER_LDFLAGS': [