Browse Source

delete win32 directive

Murat Dogan 5 years ago
parent
commit
50b22bbf3c
2 changed files with 0 additions and 8 deletions
  1. 0 4
      test/p2p/answerer.cpp
  2. 0 4
      test/p2p/offerer.cpp

+ 0 - 4
test/p2p/answerer.cpp

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

+ 0 - 4
test/p2p/offerer.cpp

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