Skip to content

Commit

Permalink
ugly patch to fix undefined rtc::ToString
Browse files Browse the repository at this point in the history
  • Loading branch information
mpromonet committed Nov 1, 2024
1 parent 12f343c commit c5e5c5f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ if (NOT EXISTS ${WEBRTCOBJS}/${CMAKE_STATIC_LIBRARY_PREFIX}webrtc${CMAKE_STATIC_
file(READ ${WEBRTCROOT}/src/rtc_base/ssl_stream_adapter.h filecontent)
string(REPLACE "#include <vector>" "#include <vector>\n#include <optional>" filecontent "${filecontent}")
file(WRITE ${WEBRTCROOT}/src/rtc_base/ssl_stream_adapter.h "${filecontent}")

file(READ ${WEBRTCROOT}/src/media/base/media_channel.h filecontent)
string(REGEX REPLACE "ost << ToStringIfSet[^;]*;" "" filecontent "${filecontent}")
file(WRITE ${WEBRTCROOT}/src/media/base/media_channel.h "${filecontent}")


# sound support
Expand Down

0 comments on commit c5e5c5f

Please sign in to comment.