2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Alpha 1.0.21: Fix more compilation bugs.

This commit is contained in:
John Preston
2017-03-11 17:13:57 +03:00
parent 28ae5fd65c
commit f2cd364e14
3 changed files with 20 additions and 2 deletions

View File

@@ -53,6 +53,24 @@ inline void t_assert_fail(const char *message, const char *file, int32 line) {
#define Ensures(condition) t_assert_full(condition, "\"" #condition "\"", __FILE__, __LINE__)
#endif // Ensures
// 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
namespace gsl {
template <>
inline span<char> make_span<QByteArray>(QByteArray &cont) {
return span<char>(cont.data(), cont.size());
}
template <>
inline span<const char> make_span(const QByteArray &cont) {
return span<const char>(cont.constData(), cont.size());
}
} // namespace gsl
#endif // OS_MAC_OLD
namespace base {
template <typename T, size_t N>