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:
@@ -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>
|
||||
|
Reference in New Issue
Block a user