mirror of
https://github.com/boostorg/mqtt5.git
synced 2025-07-31 04:57:33 +02:00
Fix CI by targeting win10 winapi
Reviewers: ljudevit Reviewed By: ljudevit Subscribers: korina, miljen Differential Revision: https://repo.mireo.local/D36487
This commit is contained in:
4
.github/workflows/ci-windows.yml
vendored
4
.github/workflows/ci-windows.yml
vendored
@ -40,7 +40,7 @@ jobs:
|
|||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
env:
|
env:
|
||||||
CXXFLAGS: ${{ matrix.cxxflags }} /D_WIN32_WINNT=0x0601 /DWIN32_LEAN_AND_MEAN=1 /DNOMINMAX=1 /D_FILE_OFFSET_BITS=64 /DBOOST_ALL_NO_LIB /EHsc /bigobj
|
CXXFLAGS: ${{ matrix.cxxflags }} /D_WIN32_WINNT=0x0A00 /DWIN32_LEAN_AND_MEAN=1 /D_FILE_OFFSET_BITS=64 /DBOOST_ALL_NO_LIB /EHsc /bigobj
|
||||||
LDFLAGS: ${{ matrix.ldflags }}
|
LDFLAGS: ${{ matrix.ldflags }}
|
||||||
CMAKE_BUILD_PARALLEL_LEVEL: 4
|
CMAKE_BUILD_PARALLEL_LEVEL: 4
|
||||||
|
|
||||||
@ -164,7 +164,7 @@ jobs:
|
|||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
env:
|
env:
|
||||||
CXXFLAGS: ${{ matrix.cxxflags }} /D_WIN32_WINNT=0x0601 /DWIN32_LEAN_AND_MEAN=1 /DNOMINMAX=1 /D_FILE_OFFSET_BITS=64 /DBOOST_ALL_NO_LIB /EHsc /bigobj
|
CXXFLAGS: ${{ matrix.cxxflags }} /D_WIN32_WINNT=0x0A00 /DWIN32_LEAN_AND_MEAN=1 /D_FILE_OFFSET_BITS=64 /DBOOST_ALL_NO_LIB /EHsc /bigobj
|
||||||
LDFLAGS: ${{ matrix.ldflags }}
|
LDFLAGS: ${{ matrix.ldflags }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
@ -194,7 +194,7 @@ private:
|
|||||||
}
|
}
|
||||||
|
|
||||||
uint32_t max_recv_size() const {
|
uint32_t max_recv_size() const {
|
||||||
return std::min(
|
return (std::min)(
|
||||||
_svc.connect_property(prop::maximum_packet_size)
|
_svc.connect_property(prop::maximum_packet_size)
|
||||||
.value_or(default_max_recv_size),
|
.value_or(default_max_recv_size),
|
||||||
static_cast<uint32_t>(default_max_send_size)
|
static_cast<uint32_t>(default_max_send_size)
|
||||||
|
@ -294,7 +294,7 @@ BOOST_DATA_TEST_CASE_F(
|
|||||||
0, topic, payload1, qos_e::at_most_once, retain_e::no, dup_e::no, {}
|
0, topic, payload1, qos_e::at_most_once, retain_e::no, dup_e::no, {}
|
||||||
);
|
);
|
||||||
|
|
||||||
const uint32_t max_packet_size = std::max(
|
const uint32_t max_packet_size = (std::max)(
|
||||||
publish1.size(),
|
publish1.size(),
|
||||||
publish1.size() * max_packet_size_multiplier + max_packet_size_offset
|
publish1.size() * max_packet_size_multiplier + max_packet_size_offset
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user