X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fio%2Ftcp_client.cxx;h=4bd9b945a54696273eca0325014e35c5f27c8f03;hb=e3d1fa268686f1d8b621241963665c2919a35aa2;hp=a02e25d3b2bca5636ad73123bb99a6055abd9106;hpb=c8ef854f01f6be48f58fa787701f7811a4b9fbe7;p=simgear.git diff --git a/simgear/io/tcp_client.cxx b/simgear/io/tcp_client.cxx index a02e25d3..4bd9b945 100644 --- a/simgear/io/tcp_client.cxx +++ b/simgear/io/tcp_client.cxx @@ -1,5 +1,5 @@ #include -#include STL_IOSTREAM +#include #ifdef _WIN32 #include @@ -7,13 +7,12 @@ #include #endif +#include + #include #include "sg_socket.hxx" -#ifndef SG_HAVE_NATIVE_SGI_COMPILERS -using std::cout; -#endif class TcpClient { @@ -52,7 +51,7 @@ TcpClient::process() sprintf( wbuf, "hello world\n" ); int length = channel->writestring( wbuf ); - cout << "writestring returned " << length << "\n"; + std::cout << "writestring returned " << length << "\n"; return true; } @@ -70,7 +69,7 @@ main() TcpClient client( "localhost", "5500" ); if (!client.open()) { - cout << "client open failed\n"; + std::cout << "client open failed\n"; return 0; }