diff --git a/include/villas/node/config.hpp.in b/include/villas/node/config.hpp.in index cb4423a5e..73c16c651 100644 --- a/include/villas/node/config.hpp.in +++ b/include/villas/node/config.hpp.in @@ -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)) diff --git a/include/villas/nodes/webrtc/peer_connection.hpp b/include/villas/nodes/webrtc/peer_connection.hpp index 546149ad5..3afc19723 100644 --- a/include/villas/nodes/webrtc/peer_connection.hpp +++ b/include/villas/nodes/webrtc/peer_connection.hpp @@ -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<<; } diff --git a/lib/nodes/webrtc.cpp b/lib/nodes/webrtc.cpp index 6e7cd6b14..fdbb248e6 100644 --- a/lib/nodes/webrtc.cpp +++ b/lib/nodes/webrtc.cpp @@ -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;