mirror of
https://github.com/telegramdesktop/tdesktop
synced 2024-12-24 23:42:58 +00:00
Version 1.4.0: Fix build for old OS X versions.
This commit is contained in:
parent
3521255d9e
commit
b66f32fe9e
@ -7,6 +7,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include "base/basic_types.h"
|
||||
#include <gsl/gsl>
|
||||
#include <gsl/gsl_byte>
|
||||
|
||||
|
@ -17,6 +17,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
#include <QtCore/QReadWriteLock>
|
||||
#include <QtCore/QRegularExpression>
|
||||
|
||||
#if QT_VERSION < QT_VERSION_CHECK(5, 5, 0)
|
||||
#define OS_MAC_OLD
|
||||
#endif // QT_VERSION < 5.5.0
|
||||
|
||||
#include <crl/crl.h>
|
||||
#include <rpl/rpl.h>
|
||||
|
||||
|
@ -121,7 +121,11 @@ ApplicationDelegate *_sharedDelegate = nil;
|
||||
});
|
||||
#ifndef OS_MAC_STORE
|
||||
if ([SPMediaKeyTap usesGlobalMediaKeyTap]) {
|
||||
#ifndef OS_MAC_OLD
|
||||
if (QSysInfo::macVersion() < Q_MV_OSX(10, 14)) {
|
||||
#else // OS_MAC_OLD
|
||||
if (true) {
|
||||
#endif // OS_MAC_OLD
|
||||
_keyTap = [[SPMediaKeyTap alloc] initWithDelegate:self];
|
||||
} else {
|
||||
// In macOS Mojave it requires accessibility features.
|
||||
|
Loading…
Reference in New Issue
Block a user