mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
webrtc: Fix libdatachannel version detection
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
This commit is contained in:
parent
e26a5c1b48
commit
1748f433fe
3 changed files with 3 additions and 3 deletions
|
@ -61,4 +61,4 @@
|
|||
#cmakedefine RABBITMQ_C_NEW_INCLUDE_DIR
|
||||
|
||||
/* Library versions */
|
||||
#define RTC_VERSION ((@LibDataChannel_VERSION_MAJOR@ << 16) | (@LibDataChannel_VERSION_MINOR@ << 8) | (@LibDataChannel_VERSION_PATCH@ << 0))
|
||||
#define RTC_VERSION_NUM ((@LibDataChannel_VERSION_MAJOR@ << 16) | (@LibDataChannel_VERSION_MINOR@ << 8) | (@LibDataChannel_VERSION_PATCH@ << 0))
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
*
|
||||
* Since libdatachannel 0.20, operator<< has been moved into the rtc namespace.
|
||||
*/
|
||||
#if RTC_VERSION < 0x001400
|
||||
#if RTC_VERSION_NUM < 0x001400
|
||||
namespace rtc {
|
||||
using ::operator<<;
|
||||
}
|
||||
|
|
|
@ -31,7 +31,7 @@ WebRTCNode::WebRTCNode(const uuid_t &id, const std::string &name)
|
|||
peer(uuid::toString(id)), wait_seconds(0), formatter(), queue({}),
|
||||
pool({}), dci({}) {
|
||||
|
||||
#if RTC_VERSION < 0x001400
|
||||
#if RTC_VERSION_NUM < 0x001400
|
||||
dci.reliability.type = rtc::Reliability::Type::Rexmit;
|
||||
#else
|
||||
dci.reliability.maxRetransmits = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue