mirror of
https://github.com/mii443/libdatachannel.git
synced 2025-08-22 23:25:33 +00:00
delete win32 directive
This commit is contained in:
@ -62,9 +62,7 @@ int main(int argc, char **argv) {
|
||||
pc->onLocalDescription([](const Description &sdp) {
|
||||
std::string s(sdp);
|
||||
std::replace(s.begin(), s.end(), '\n', static_cast<char>(94));
|
||||
#ifdef _WIN32
|
||||
std::replace(s.begin(), s.end(), '\r', static_cast<char>(95));
|
||||
#endif
|
||||
cout << "Local Description (Paste this to other peer):" << endl << s << endl << endl;
|
||||
});
|
||||
|
||||
@ -123,9 +121,7 @@ int main(int argc, char **argv) {
|
||||
getline(cin, sdp);
|
||||
|
||||
std::replace(sdp.begin(), sdp.end(), static_cast<char>(94), '\n');
|
||||
#ifdef _WIN32
|
||||
std::replace(sdp.begin(), sdp.end(), static_cast<char>(95), '\r');
|
||||
#endif
|
||||
descPtr = std::make_unique<Description>(sdp, Description::Type::Offer,
|
||||
Description::Role::Passive);
|
||||
pc->setRemoteDescription(*descPtr);
|
||||
|
@ -62,9 +62,7 @@ int main(int argc, char **argv) {
|
||||
pc->onLocalDescription([](const Description &sdp) {
|
||||
std::string s(sdp);
|
||||
std::replace(s.begin(), s.end(), '\n', static_cast<char>(94));
|
||||
#ifdef _WIN32
|
||||
std::replace(s.begin(), s.end(), '\r', static_cast<char>(95));
|
||||
#endif
|
||||
cout << "Local Description (Paste this to other peer):" << endl << s << endl << endl;
|
||||
});
|
||||
|
||||
@ -121,9 +119,7 @@ int main(int argc, char **argv) {
|
||||
getline(cin, sdp);
|
||||
|
||||
std::replace(sdp.begin(), sdp.end(), static_cast<char>(94), '\n');
|
||||
#ifdef _WIN32
|
||||
std::replace(sdp.begin(), sdp.end(), static_cast<char>(95), '\r');
|
||||
#endif
|
||||
descPtr = std::make_unique<Description>(sdp);
|
||||
pc->setRemoteDescription(*descPtr);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user