Skip to content

Commit

Permalink
Version 1.4.0: Fix build for old OS X versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Sep 28, 2018
1 parent 3521255 commit b66f32f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions Telegram/SourceFiles/base/bytes.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ For license and copyright information please follow this link:
*/
#pragma once

#include "base/basic_types.h"
#include <gsl/gsl>
#include <gsl/gsl_byte>

Expand Down
4 changes: 4 additions & 0 deletions Telegram/SourceFiles/export/export_pch.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ For license and copyright information please follow this link:
#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>

Expand Down
4 changes: 4 additions & 0 deletions Telegram/SourceFiles/platform/mac/specific_mac_p.mm
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,11 @@ - (void) applicationDidFinishLaunching:(NSNotification *)aNotification {
});
#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.
Expand Down

0 comments on commit b66f32f

Please sign in to comment.