Browse Source

Fixed compilation on macOS

Paul-Louis Ageneau 4 years ago
parent
commit
96e978a8e7
3 changed files with 3 additions and 3 deletions
  1. 1 1
      deps/libjuice
  2. 1 0
      src/description.cpp
  3. 1 2
      src/peerconnection.cpp

+ 1 - 1
deps/libjuice

@@ -1 +1 @@
-Subproject commit c47acce91190e5fc067fd76c8e428775c86cb5d4
+Subproject commit 5865e915da69db8425c38e3d2403849dfdb22489

+ 1 - 0
src/description.cpp

@@ -20,6 +20,7 @@
 #include "description.hpp"
 
 #include <algorithm>
+#include <array>
 #include <cctype>
 #include <chrono>
 #include <iostream>

+ 1 - 2
src/peerconnection.cpp

@@ -37,7 +37,6 @@ namespace rtc {
 
 using namespace std::placeholders;
 
-using std::reinterpret_pointer_cast;
 using std::shared_ptr;
 using std::weak_ptr;
 
@@ -690,7 +689,7 @@ void PeerConnection::openTracks() {
 		return;
 
 	if (auto transport = std::atomic_load(&mDtlsTransport)) {
-		auto srtpTransport = reinterpret_pointer_cast<DtlsSrtpTransport>(transport);
+		auto srtpTransport = std::reinterpret_pointer_cast<DtlsSrtpTransport>(transport);
 		std::shared_lock lock(mTracksMutex); // read-only
 		for (auto it = mTracks.begin(); it != mTracks.end(); ++it)
 			if (auto track = it->second.lock())