From 3c404128c4669a1f4f190e20a89553677717fc50 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 23 Sep 2016 22:01:44 +0300 Subject: Add missing comments into defines. --- src/net/sdltcpnet.cpp | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'src/net/sdltcpnet.cpp') diff --git a/src/net/sdltcpnet.cpp b/src/net/sdltcpnet.cpp index bea2d0e11..3337cd260 100644 --- a/src/net/sdltcpnet.cpp +++ b/src/net/sdltcpnet.cpp @@ -28,7 +28,7 @@ #include #include #include -#else +#else // defined(M_TCPOK) && !defined(ANDROID) #include #include #include @@ -37,9 +37,9 @@ #define TCP_THIN_LINEAR_TIMEOUTS 16 // Fast retrans. after 1 dupack #define TCP_THIN_DUPACK 17 -#endif +#endif // defined(M_TCPOK) && !defined(ANDROID) -#endif +#endif // defined __linux__ || defined __linux PRAGMACLANG6(GCC diagnostic push) PRAGMACLANG6(GCC diagnostic ignored "-Wold-style-cast") @@ -60,7 +60,9 @@ struct TCPsocketHack final IPaddress localAddress; int sflag; }; -#endif +#endif // !defined(__native_client__) + // && (defined(TCP_THIN_LINEAR_TIMEOUTS) + // || defined(TCP_THIN_DUPACK)) void TcpNet::init() { @@ -118,18 +120,20 @@ TcpNet::Socket TcpNet::open(IPaddress *const ip) { logger->log_r("error on set TCP_THIN_LINEAR_TIMEOUTS"); } -#endif +#endif // TCP_THIN_LINEAR_TIMEOUTS #ifdef TCP_THIN_DUPACK if (setsockopt(hack->channel, IPPROTO_TCP, TCP_THIN_DUPACK, &val, sizeof(val))) { logger->log_r("error on set TCP_THIN_DUPACK"); } -#endif +#endif // TCP_THIN_DUPACK } } } -#endif +#endif // !defined(__native_client__) + // && (defined(TCP_THIN_LINEAR_TIMEOUTS) + // || defined(TCP_THIN_DUPACK)) return sock; } -- cgit v1.2.3-70-g09d2