delete win32 directive

This commit is contained in:
Murat Dogan
2020-02-20 21:06:54 +03:00
parent 93e153398f
commit 50b22bbf3c
2 changed files with 0 additions and 8 deletions

View File

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

View File

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