mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-06 19:40:10 +02:00
Update asio wrap to 1.34.2
This fixes a compatibility issue with newer asio versions.
This commit is contained in:
@@ -31,6 +31,8 @@ Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
### Packaging notes
|
||||
|
||||
- The `asio` dependency has been updated to version 1.34.2. This fixes a
|
||||
compatibility issue with newer versions of `asio`.
|
||||
- The `system-asio` build option has been removed since `asio` added
|
||||
`pkg-config` support three years ago in version 1.23.
|
||||
|
||||
|
||||
@@ -86,9 +86,9 @@ namespace asio {
|
||||
// std::size_t)`, since `llvm::SmallVector` is mostly compatible with the STL
|
||||
// vector.
|
||||
template <typename PodType>
|
||||
inline ASIO_MUTABLE_BUFFER buffer(llvm::SmallVectorImpl<PodType>& data)
|
||||
ASIO_NOEXCEPT {
|
||||
return ASIO_MUTABLE_BUFFER(
|
||||
ASIO_NODISCARD inline mutable_buffer buffer(
|
||||
llvm::SmallVectorImpl<PodType>& data) ASIO_NOEXCEPT {
|
||||
return mutable_buffer(
|
||||
data.size() ? &data[0] : 0, data.size() * sizeof(PodType)
|
||||
#if defined(ASIO_ENABLE_BUFFER_DEBUGGING)
|
||||
,
|
||||
@@ -99,9 +99,10 @@ inline ASIO_MUTABLE_BUFFER buffer(llvm::SmallVectorImpl<PodType>& data)
|
||||
}
|
||||
|
||||
template <typename PodType>
|
||||
inline ASIO_MUTABLE_BUFFER buffer(llvm::SmallVectorImpl<PodType>& data,
|
||||
std::size_t max_size_in_bytes) ASIO_NOEXCEPT {
|
||||
return ASIO_MUTABLE_BUFFER(
|
||||
ASIO_NODISCARD inline mutable_buffer buffer(
|
||||
llvm::SmallVectorImpl<PodType>& data,
|
||||
std::size_t max_size_in_bytes) ASIO_NOEXCEPT {
|
||||
return mutable_buffer(
|
||||
data.size() ? &data[0] : 0,
|
||||
data.size() * sizeof(PodType) < max_size_in_bytes
|
||||
? data.size() * sizeof(PodType)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
[wrap-git]
|
||||
url = https://github.com/chriskohlhoff/asio.git
|
||||
# This is tag asio-1-28-2
|
||||
revision = 7609450f71434bdc9fbd9491a9505b423c2a8496
|
||||
# This is tag asio-1-34-2
|
||||
revision = ed6aa8a13d51dfc6c00ae453fc9fb7df5d6ea963
|
||||
depth = 1
|
||||
patch_directory = asio
|
||||
|
||||
|
||||
Reference in New Issue
Block a user