diff options
author | Ben Craig <bencraig@apache.org> | 2013-11-05 19:49:12 -0600 |
---|---|---|
committer | Ben Craig <bencraig@apache.org> | 2013-11-05 19:49:12 -0600 |
commit | f4e6e62ea091b94322ecc99756269dbee1c06380 (patch) | |
tree | 19eb51150f3e1a084cecc6d64304ebf90b51f3a3 /lib/cpp/src | |
parent | 5def2f87d808e4ae1270d22ee2a28034a84bf98d (diff) | |
download | thrift-f4e6e62ea091b94322ecc99756269dbee1c06380.tar.gz |
THRIFT-2214: System header sys/param.h is included inside the Thrift namespace
Client: cpp
Patch: Vladimir Strisovsky
Diffstat (limited to 'lib/cpp/src')
-rw-r--r-- | lib/cpp/src/thrift/protocol/TProtocol.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/cpp/src/thrift/protocol/TProtocol.h b/lib/cpp/src/thrift/protocol/TProtocol.h index d6ecc0f75..e72033ac2 100644 --- a/lib/cpp/src/thrift/protocol/TProtocol.h +++ b/lib/cpp/src/thrift/protocol/TProtocol.h @@ -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 |