提交 53466ce6 authored 作者: Nazar Mokrynskyi's avatar Nazar Mokrynskyi

Make Tst header packed to fix Windows tests and unlock Windows worker CI

上级 c7723ccb
......@@ -32,10 +32,9 @@ jobs:
- os: macos-11
cc: clang
cxx: clang++
# TODO: Unlock when intermittent unexplainable CI errors are resolved.
# - os: windows-2019
# cc: cl
# cxx: cl
- os: windows-2019
cc: cl
cxx: cl
# A single Node.js version should be fine for C++.
node:
- 14
......
......@@ -24,6 +24,12 @@ namespace RTC
class FeedbackPsTstItem : public FeedbackItem
{
public:
#ifdef _WIN32
#pragma pack(push, 1)
#define MEDIASOUP_PACKED
#else
#define MEDIASOUP_PACKED __attribute__((packed))
#endif
struct Header
{
uint32_t ssrc;
......@@ -36,7 +42,11 @@ namespace RTC
uint8_t reserved2 : 3;
uint8_t index : 5;
#endif
};
} MEDIASOUP_PACKED;
#ifdef _WIN32
#pragma pack(pop)
#endif
#undef SCTP_PACKED
public:
static const size_t HeaderSize{ 8 };
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论