From 3f0fed19d8b15eba8601f3e0a04cea93cbffdb15 Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 5 Jan 2022 22:15:17 +0300 Subject: [PATCH] Fix build for macOS. --- .../SourceFiles/platform/mac/integration_mac.h | 7 +++++++ .../SourceFiles/platform/mac/integration_mac.mm | 15 +++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/Telegram/SourceFiles/platform/mac/integration_mac.h b/Telegram/SourceFiles/platform/mac/integration_mac.h index 73e006325..11b203214 100644 --- a/Telegram/SourceFiles/platform/mac/integration_mac.h +++ b/Telegram/SourceFiles/platform/mac/integration_mac.h @@ -7,3 +7,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL */ #pragma once +namespace Platform { + +class Integration; + +[[nodiscard]] std::unique_ptr CreateIntegration(); + +} // namespace Platform diff --git a/Telegram/SourceFiles/platform/mac/integration_mac.mm b/Telegram/SourceFiles/platform/mac/integration_mac.mm index 91d22ce7f..6a60a46d1 100644 --- a/Telegram/SourceFiles/platform/mac/integration_mac.mm +++ b/Telegram/SourceFiles/platform/mac/integration_mac.mm @@ -7,3 +7,18 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL */ #include "platform/mac/integration_mac.h" +#include "platform/platform_integration.h" + +namespace Platform { +namespace { + +class MacIntegration final : public Integration { +}; + +} // namespace + +std::unique_ptr CreateIntegration() { + return std::make_unique(); +} + +} // namespace Platform