1
0
Fork 0
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:
Steffen Vogel 2024-05-23 13:59:11 +02:00
parent e26a5c1b48
commit 1748f433fe
3 changed files with 3 additions and 3 deletions

View file

@ -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))

View file

@ -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<<;
}

View file

@ -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;