mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-10-23 15:06:09 +00:00
Move system versions to platform/platform_info.
This commit is contained in:
53
Telegram/SourceFiles/platform/linux/info_linux.h
Normal file
53
Telegram/SourceFiles/platform/linux/info_linux.h
Normal file
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
This file is part of Telegram Desktop,
|
||||
the official desktop application for the Telegram messaging service.
|
||||
|
||||
For license and copyright information please follow this link:
|
||||
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
namespace Platform {
|
||||
|
||||
inline constexpr bool IsLinux() {
|
||||
return true;
|
||||
}
|
||||
|
||||
inline constexpr bool IsLinux32Bit() {
|
||||
#ifdef Q_OS_LINUX32
|
||||
return true;
|
||||
#else // Q_OS_LINUX32
|
||||
return false;
|
||||
#endif // Q_OS_LINUX32
|
||||
}
|
||||
|
||||
inline constexpr bool IsLinux64Bit() {
|
||||
#ifdef Q_OS_LINUX64
|
||||
return true;
|
||||
#else // Q_OS_LINUX64
|
||||
return false;
|
||||
#endif // Q_OS_LINUX64
|
||||
}
|
||||
|
||||
inline constexpr bool IsWindows() { return false; }
|
||||
inline constexpr bool IsWindowsStoreBuild() { return false; }
|
||||
inline bool IsWindowsXPOrGreater() { return false; }
|
||||
inline bool IsWindowsVistaOrGreater() { return false; }
|
||||
inline bool IsWindows7OrGreater() { return false; }
|
||||
inline bool IsWindows8OrGreater() { return false; }
|
||||
inline bool IsWindows8Point1OrGreater() { return false; }
|
||||
inline bool IsWindows10OrGreater() { return false; }
|
||||
inline constexpr bool IsMac() { return false; }
|
||||
inline constexpr bool IsMacOldBuild() { return false; }
|
||||
inline constexpr bool IsMacStoreBuild() { return false; }
|
||||
inline bool IsMac10_6OrGreater() { return false; }
|
||||
inline bool IsMac10_7OrGreater() { return false; }
|
||||
inline bool IsMac10_8OrGreater() { return false; }
|
||||
inline bool IsMac10_9OrGreater() { return false; }
|
||||
inline bool IsMac10_10OrGreater() { return false; }
|
||||
inline bool IsMac10_11OrGreater() { return false; }
|
||||
inline bool IsMac10_12OrGreater() { return false; }
|
||||
inline bool IsMac10_13OrGreater() { return false; }
|
||||
inline bool IsMac10_14OrGreater() { return false; }
|
||||
|
||||
} // namespace Platform
|
||||
Reference in New Issue
Block a user