THRIFT-2214: System header sys/param.h is included inside the Thrift namespace
authorBen Craig <bencraig@apache.org>
Wed, 6 Nov 2013 01:49:12 +0000 (19:49 -0600)
committerBen Craig <bencraig@apache.org>
Wed, 6 Nov 2013 01:49:12 +0000 (19:49 -0600)
Client: cpp
Patch: Vladimir Strisovsky

lib/cpp/src/thrift/protocol/TProtocol.h

index d6ecc0f..e72033a 100644 (file)
@@ -75,10 +75,6 @@ static inline To bitwise_cast(From from) {
 }
 
 
-namespace apache { namespace thrift { namespace protocol {
-
-using apache::thrift::transport::TTransport;
-
 #ifdef HAVE_SYS_PARAM_H
 #include <sys/param.h>
 #endif
@@ -140,6 +136,10 @@ using apache::thrift::transport::TTransport;
 # error "Can't define htonll or ntohll!"
 #endif
 
+namespace apache { namespace thrift { namespace protocol {
+
+using apache::thrift::transport::TTransport;
+
 /**
  * Enumerated definition of the types that the Thrift protocol supports.
  * Take special note of the T_END type which is used specifically to mark