THRIFT-2014 Change C++ lib includes to use <namespace/> style throughout
authorRoger Meier <roger@apache.org>
Mon, 10 Jun 2013 19:17:23 +0000 (21:17 +0200)
committerRoger Meier <roger@apache.org>
Mon, 10 Jun 2013 19:17:23 +0000 (21:17 +0200)
Patch: Randy Abernethy

67 files changed:
lib/cpp/src/thrift/TDispatchProcessor.h
lib/cpp/src/thrift/Thrift.h
lib/cpp/src/thrift/async/TAsyncDispatchProcessor.h
lib/cpp/src/thrift/async/TAsyncProtocolProcessor.cpp
lib/cpp/src/thrift/async/TAsyncProtocolProcessor.h
lib/cpp/src/thrift/async/TEvhttpClientChannel.cpp
lib/cpp/src/thrift/async/TEvhttpClientChannel.h
lib/cpp/src/thrift/async/TEvhttpServer.cpp
lib/cpp/src/thrift/concurrency/BoostMonitor.cpp
lib/cpp/src/thrift/concurrency/BoostMutex.cpp
lib/cpp/src/thrift/concurrency/BoostThreadFactory.cpp
lib/cpp/src/thrift/concurrency/BoostThreadFactory.h
lib/cpp/src/thrift/concurrency/Monitor.cpp
lib/cpp/src/thrift/concurrency/Monitor.h
lib/cpp/src/thrift/concurrency/Mutex.cpp
lib/cpp/src/thrift/concurrency/PosixThreadFactory.cpp
lib/cpp/src/thrift/concurrency/PosixThreadFactory.h
lib/cpp/src/thrift/concurrency/StdMonitor.cpp
lib/cpp/src/thrift/concurrency/StdMutex.cpp
lib/cpp/src/thrift/concurrency/StdThreadFactory.cpp
lib/cpp/src/thrift/concurrency/StdThreadFactory.h
lib/cpp/src/thrift/concurrency/Thread.h
lib/cpp/src/thrift/concurrency/ThreadManager.cpp
lib/cpp/src/thrift/concurrency/ThreadManager.h
lib/cpp/src/thrift/concurrency/TimerManager.cpp
lib/cpp/src/thrift/concurrency/TimerManager.h
lib/cpp/src/thrift/concurrency/Util.cpp
lib/cpp/src/thrift/processor/PeekProcessor.cpp
lib/cpp/src/thrift/protocol/TBase64Utils.cpp
lib/cpp/src/thrift/protocol/TBinaryProtocol.h
lib/cpp/src/thrift/protocol/TBinaryProtocol.tcc
lib/cpp/src/thrift/protocol/TCompactProtocol.h
lib/cpp/src/thrift/protocol/TDebugProtocol.cpp
lib/cpp/src/thrift/protocol/TDebugProtocol.h
lib/cpp/src/thrift/protocol/TDenseProtocol.h
lib/cpp/src/thrift/protocol/TJSONProtocol.cpp
lib/cpp/src/thrift/protocol/TJSONProtocol.h
lib/cpp/src/thrift/qt/TQTcpServer.cpp
lib/cpp/src/thrift/server/TNonblockingServer.cpp
lib/cpp/src/thrift/transport/TBufferTransports.h
lib/cpp/src/thrift/transport/TFDTransport.h
lib/cpp/src/thrift/transport/TFileTransport.cpp
lib/cpp/src/thrift/transport/THttpTransport.h
lib/cpp/src/thrift/transport/TPipe.cpp
lib/cpp/src/thrift/transport/TPipe.h
lib/cpp/src/thrift/transport/TPipeServer.cpp
lib/cpp/src/thrift/transport/TPipeServer.h
lib/cpp/src/thrift/transport/TSSLServerSocket.cpp
lib/cpp/src/thrift/transport/TSSLServerSocket.h
lib/cpp/src/thrift/transport/TSSLSocket.cpp
lib/cpp/src/thrift/transport/TSSLSocket.h
lib/cpp/src/thrift/transport/TServerSocket.cpp
lib/cpp/src/thrift/transport/TServerSocket.h
lib/cpp/src/thrift/transport/TServerTransport.h
lib/cpp/src/thrift/transport/TSimpleFileTransport.cpp
lib/cpp/src/thrift/transport/TSimpleFileTransport.h
lib/cpp/src/thrift/transport/TSocket.cpp
lib/cpp/src/thrift/transport/TSocket.h
lib/cpp/src/thrift/transport/TSocketPool.cpp
lib/cpp/src/thrift/transport/TSocketPool.h
lib/cpp/src/thrift/windows/GetTimeOfDay.cpp
lib/cpp/src/thrift/windows/SocketPair.cpp
lib/cpp/src/thrift/windows/TWinsockSingleton.cpp
lib/cpp/src/thrift/windows/TWinsockSingleton.h
lib/cpp/src/thrift/windows/WinFcntl.cpp
lib/cpp/src/thrift/windows/WinFcntl.h
lib/cpp/src/thrift/windows/config.h

index f98751b..33ec22e 100644 (file)
@@ -19,7 +19,7 @@
 #ifndef _THRIFT_TDISPATCHPROCESSOR_H_
 #define _THRIFT_TDISPATCHPROCESSOR_H_ 1
 
-#include "TProcessor.h"
+#include <thrift/TProcessor.h>
 
 namespace apache { namespace thrift {
 
index 8c22814..361ff6a 100644 (file)
@@ -23,7 +23,7 @@
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
-#include "transport/PlatformSocket.h"
+#include <thrift/transport/PlatformSocket.h>
 #include <stdio.h>
 #include <assert.h>
 
@@ -45,7 +45,7 @@
 #include <boost/utility/enable_if.hpp>
 #include <boost/type_traits/is_convertible.hpp>
 
-#include "TLogging.h"
+#include <thrift/TLogging.h>
 
 /**
  * Helper macros to allow function overloading even when using
index 738f4b7..15b5bce 100644 (file)
@@ -19,7 +19,7 @@
 #ifndef _THRIFT_ASYNC_TASYNCDISPATCHPROCESSOR_H_
 #define _THRIFT_ASYNC_TASYNCDISPATCHPROCESSOR_H_ 1
 
-#include "TAsyncProcessor.h"
+#include <thrift/async/TAsyncProcessor.h>
 
 namespace apache { namespace thrift { namespace async {
 
index 61a3ff2..2096289 100644 (file)
@@ -17,7 +17,7 @@
  * under the License.
  */
 
-#include "TAsyncProtocolProcessor.h"
+#include <thrift/async/TAsyncProtocolProcessor.h>
 
 using apache::thrift::transport::TBufferBase;
 using apache::thrift::protocol::TProtocol;
index f217168..840b4dd 100644 (file)
@@ -20,8 +20,8 @@
 #ifndef _THRIFT_TNAME_ME_H_
 #define _THRIFT_TNAME_ME_H_ 1
 
-#include "TAsyncProcessor.h"
-#include "TAsyncBufferProcessor.h"
+#include <thrift/async/TAsyncProcessor.h>
+#include <thrift/async/TAsyncBufferProcessor.h>
 #include <thrift/protocol/TProtocol.h>
 
 namespace apache { namespace thrift { namespace async {
index 0e74783..7ad7537 100644 (file)
@@ -17,7 +17,7 @@
  * under the License.
  */
 
-#include "TEvhttpClientChannel.h"
+#include <thrift/async/TEvhttpClientChannel.h>
 #include <evhttp.h>
 #include <thrift/transport/TBufferTransports.h>
 #include <thrift/protocol/TProtocolException.h>
index d497edb..a7229e9 100644 (file)
@@ -22,7 +22,7 @@
 
 #include <string>
 #include <boost/shared_ptr.hpp>
-#include "TAsyncChannel.h"
+#include <thrift/async/TAsyncChannel.h>
 
 struct event_base;
 struct evhttp_connection;
index 83fb5fa..fa8d782 100644 (file)
@@ -17,8 +17,8 @@
  * under the License.
  */
 
-#include "TEvhttpServer.h"
-#include "TAsyncBufferProcessor.h"
+#include <thrift/async/TEvhttpServer.h>
+#include <thrift/async/TAsyncBufferProcessor.h>
 #include <thrift/transport/TBufferTransports.h>
 #include <evhttp.h>
 
index 9487a2f..ad33ce5 100644 (file)
@@ -20,9 +20,9 @@
 #ifdef HAVE_CONFIG_H
 #include <config.h>
 #endif
-#include "Monitor.h"
-#include "Exception.h"
-#include "Util.h"
+#include <thrift/concurrency/Monitor.h>
+#include <thrift/concurrency/Exception.h>
+#include <thrift/concurrency/Util.h>
 #include <thrift/transport/PlatformSocket.h>
 #include <assert.h>
 
index a7b5c37..debe1b0 100644 (file)
@@ -20,8 +20,8 @@
 #ifdef HAVE_CONFIG_H
 #include <config.h>
 #endif
-#include "Mutex.h"
-#include "Util.h"
+#include <thrift/concurrency/Mutex.h>
+#include <thrift/concurrency/Util.h>
 
 #include <cassert>
 #include <boost/thread.hpp>
index b473d9b..784ff8e 100644 (file)
@@ -20,8 +20,8 @@
 #ifdef HAVE_CONFIG_H
 #include <config.h>
 #endif
-#include "BoostThreadFactory.h"
-#include "Exception.h"
+#include <thrift/concurrency/BoostThreadFactory.h>
+#include <thrift/concurrency/Exception.h>
 
 #include <cassert>
 
index a466705..6a236d3 100644 (file)
@@ -20,7 +20,7 @@
 #ifndef _THRIFT_CONCURRENCY_BOOSTTHREADFACTORY_H_
 #define _THRIFT_CONCURRENCY_BOOSTTHREADFACTORY_H_ 1
 
-#include "Thread.h"
+#include <thrift/concurrency/Thread.h>
 
 #include <boost/shared_ptr.hpp>
 
index 965029b..d94b2a4 100644 (file)
@@ -17,9 +17,9 @@
  * under the License.
  */
 
-#include "Monitor.h"
-#include "Exception.h"
-#include "Util.h"
+#include <thrift/concurrency/Monitor.h>
+#include <thrift/concurrency/Exception.h>
+#include <thrift/concurrency/Util.h>
 #include <thrift/transport/PlatformSocket.h>
 
 #include <boost/scoped_ptr.hpp>
index 185e246..811e0e1 100644 (file)
@@ -20,8 +20,8 @@
 #ifndef _THRIFT_CONCURRENCY_MONITOR_H_
 #define _THRIFT_CONCURRENCY_MONITOR_H_ 1
 
-#include "Exception.h"
-#include "Mutex.h"
+#include <thrift/concurrency/Exception.h>
+#include <thrift/concurrency/Mutex.h>
 
 #include <boost/utility.hpp>
 
index 5ca4b0f..5a4bb54 100644 (file)
@@ -21,8 +21,8 @@
 #include <config.h>
 #endif
 #include <thrift/Thrift.h>
-#include "Mutex.h"
-#include "Util.h"
+#include <thrift/concurrency/Mutex.h>
+#include <thrift/concurrency/Util.h>
 
 #include <assert.h>
 #ifdef HAVE_PTHREAD_H
index 2019353..39dd886 100644 (file)
@@ -20,8 +20,8 @@
 #ifdef HAVE_CONFIG_H
 #include <config.h>
 #endif
-#include "PosixThreadFactory.h"
-#include "Exception.h"
+#include <thrift/concurrency/PosixThreadFactory.h>
+#include <thrift/concurrency/Exception.h>
 
 #if GOOGLE_PERFTOOLS_REGISTER_THREAD
 #  include <google/profiler.h>
index d6d83a3..72368ca 100644 (file)
@@ -20,7 +20,7 @@
 #ifndef _THRIFT_CONCURRENCY_POSIXTHREADFACTORY_H_
 #define _THRIFT_CONCURRENCY_POSIXTHREADFACTORY_H_ 1
 
-#include "Thread.h"
+#include <thrift/concurrency/Thread.h>
 
 #include <boost/shared_ptr.hpp>
 
index af602f1..84cad66 100644 (file)
@@ -20,9 +20,9 @@
 #ifdef HAVE_CONFIG_H
 #include <config.h>
 #endif
-#include "Monitor.h"
-#include "Exception.h"
-#include "Util.h"
+#include <thrift/concurrency/Monitor.h>
+#include <thrift/concurrency/Exception.h>
+#include <thrift/concurrency/Util.h>
 #include <thrift/transport/PlatformSocket.h>
 #include <assert.h>
 
index 584a581..82a495f 100644 (file)
@@ -20,8 +20,8 @@
 #ifdef HAVE_CONFIG_H
 #include <config.h>
 #endif
-#include "Mutex.h"
-#include "Util.h"
+#include <thrift/concurrency/Mutex.h>
+#include <thrift/concurrency/Util.h>
 
 #include <cassert>
 #include <chrono>
index a521f09..443771d 100644 (file)
@@ -20,8 +20,8 @@
 #ifdef HAVE_CONFIG_H
 #include <config.h>
 #endif
-#include "StdThreadFactory.h"
-#include "Exception.h"
+#include <thrift/concurrency/StdThreadFactory.h>
+#include <thrift/concurrency/Exception.h>
 
 #include <cassert>
 
index c300e0d..307f970 100644 (file)
@@ -20,7 +20,7 @@
 #ifndef _THRIFT_CONCURRENCY_STDTHREADFACTORY_H_
 #define _THRIFT_CONCURRENCY_STDTHREADFACTORY_H_ 1
 
-#include "Thread.h"
+#include <thrift/concurrency/Thread.h>
 
 #include <boost/shared_ptr.hpp>
 
index 6be7d1d..894f035 100755 (executable)
@@ -25,7 +25,7 @@
 #include <boost/weak_ptr.hpp>
 
 #ifdef HAVE_CONFIG_H
-#include <config.h>
+#include "config.h"
 #endif
 
 #if USE_BOOST_THREAD
index b756bf1..eb3bc64 100644 (file)
 #include <config.h>
 #endif
 
-#include "ThreadManager.h"
-#include "Exception.h"
-#include "Monitor.h"
-#include "Util.h"
+#include <thrift/concurrency/ThreadManager.h>
+#include <thrift/concurrency/Exception.h>
+#include <thrift/concurrency/Monitor.h>
+#include <thrift/concurrency/Util.h>
 
 #include <boost/shared_ptr.hpp>
 
index 41866bc..de45d56 100644 (file)
@@ -23,7 +23,7 @@
 #include <boost/shared_ptr.hpp>
 #include <thrift/cxxfunctional.h>
 #include <sys/types.h>
-#include "Thread.h"
+#include <thrift/concurrency/Thread.h>
 
 namespace apache { namespace thrift { namespace concurrency {
 
index 98a4b28..b47c697 100644 (file)
@@ -17,9 +17,9 @@
  * under the License.
  */
 
-#include "TimerManager.h"
-#include "Exception.h"
-#include "Util.h"
+#include <thrift/concurrency/TimerManager.h>
+#include <thrift/concurrency/Exception.h>
+#include <thrift/concurrency/Util.h>
 
 #include <assert.h>
 #include <iostream>
index fdda263..d8200cb 100644 (file)
@@ -20,9 +20,9 @@
 #ifndef _THRIFT_CONCURRENCY_TIMERMANAGER_H_
 #define _THRIFT_CONCURRENCY_TIMERMANAGER_H_ 1
 
-#include "Exception.h"
-#include "Monitor.h"
-#include "Thread.h"
+#include <thrift/concurrency/Exception.h>
+#include <thrift/concurrency/Monitor.h>
+#include <thrift/concurrency/Thread.h>
 
 #include <boost/shared_ptr.hpp>
 #include <map>
index 1f291da..868f52f 100644 (file)
@@ -21,7 +21,7 @@
 #include <config.h>
 #endif
 #include <thrift/Thrift.h>
-#include "Util.h"
+#include <thrift/concurrency/Util.h>
 
 #if defined(HAVE_SYS_TIME_H)
 #include <sys/time.h>
index 9a9b672..bfc4ac7 100644 (file)
@@ -17,7 +17,7 @@
  * under the License.
  */
 
-#include "PeekProcessor.h"
+#include <thrift/processor/PeekProcessor.h>
 
 using namespace apache::thrift::transport;
 using namespace apache::thrift::protocol;
index 452985c..cd343ed 100644 (file)
@@ -17,7 +17,7 @@
  * under the License.
  */
 
-#include "TBase64Utils.h"
+#include <thrift/protocol/TBase64Utils.h>
 
 #include <boost/static_assert.hpp>
 
index b762ad4..a5b19e5 100644 (file)
@@ -20,8 +20,8 @@
 #ifndef _THRIFT_PROTOCOL_TBINARYPROTOCOL_H_
 #define _THRIFT_PROTOCOL_TBINARYPROTOCOL_H_ 1
 
-#include "TProtocol.h"
-#include "TVirtualProtocol.h"
+#include <thrift/protocol/TProtocol.h>
+#include <thrift/protocol/TVirtualProtocol.h>
 
 #include <boost/shared_ptr.hpp>
 
@@ -277,6 +277,6 @@ typedef TBinaryProtocolFactoryT<TTransport> TBinaryProtocolFactory;
 
 }}} // apache::thrift::protocol
 
-#include "TBinaryProtocol.tcc"
+#include <thrift/protocol/TBinaryProtocol.tcc>
 
 #endif // #ifndef _THRIFT_PROTOCOL_TBINARYPROTOCOL_H_
index 294c831..54d79b7 100644 (file)
@@ -20,7 +20,7 @@
 #ifndef _THRIFT_PROTOCOL_TBINARYPROTOCOL_TCC_
 #define _THRIFT_PROTOCOL_TBINARYPROTOCOL_TCC_ 1
 
-#include "TBinaryProtocol.h"
+#include <thrift/protocol/TBinaryProtocol.h>
 
 #include <limits>
 
index 0e78c36..d6da745 100644 (file)
@@ -20,7 +20,7 @@
 #ifndef _THRIFT_PROTOCOL_TCOMPACTPROTOCOL_H_
 #define _THRIFT_PROTOCOL_TCOMPACTPROTOCOL_H_ 1
 
-#include "TVirtualProtocol.h"
+#include <thrift/protocol/TVirtualProtocol.h>
 
 #include <stack>
 #include <boost/shared_ptr.hpp>
@@ -284,6 +284,6 @@ typedef TCompactProtocolFactoryT<TTransport> TCompactProtocolFactory;
 
 }}} // apache::thrift::protocol
 
-#include "TCompactProtocol.tcc"
+#include <thrift/protocol/TCompactProtocol.tcc>
 
 #endif
index 9f55245..63ea14d 100644 (file)
@@ -17,7 +17,7 @@
  * under the License.
  */
 
-#include "TDebugProtocol.h"
+#include <thrift/protocol/TDebugProtocol.h>
 
 #include <cassert>
 #include <cctype>
index f64928e..f85e691 100644 (file)
@@ -20,7 +20,7 @@
 #ifndef _THRIFT_PROTOCOL_TDEBUGPROTOCOL_H_
 #define _THRIFT_PROTOCOL_TDEBUGPROTOCOL_H_ 1
 
-#include "TVirtualProtocol.h"
+#include <thrift/protocol/TVirtualProtocol.h>
 
 #include <boost/shared_ptr.hpp>
 
index fc25cb7..4808d79 100644 (file)
@@ -20,7 +20,7 @@
 #ifndef _THRIFT_PROTOCOL_TDENSEPROTOCOL_H_
 #define _THRIFT_PROTOCOL_TDENSEPROTOCOL_H_ 1
 
-#include "TBinaryProtocol.h"
+#include <thrift/protocol/TBinaryProtocol.h>
 
 namespace apache { namespace thrift { namespace protocol {
 
index 0951876..a0cc8e2 100644 (file)
  * under the License.
  */
 
-#include "TJSONProtocol.h"
+#include <thrift/protocol/TJSONProtocol.h>
 
 #include <math.h>
 #include <boost/lexical_cast.hpp>
-#include "TBase64Utils.h"
+#include <thrift/protocol/TBase64Utils.h>
 #include <thrift/transport/TTransportException.h>
 
 using namespace apache::thrift::transport;
index 0a6f09c..edfc744 100644 (file)
@@ -20,7 +20,7 @@
 #ifndef _THRIFT_PROTOCOL_TJSONPROTOCOL_H_
 #define _THRIFT_PROTOCOL_TJSONPROTOCOL_H_ 1
 
-#include "TVirtualProtocol.h"
+#include <thrift/protocol/TVirtualProtocol.h>
 
 #include <stack>
 
index 2468199..79a8c59 100644 (file)
@@ -17,8 +17,8 @@
  * under the License.
  */
 
-#include "TQTcpServer.h"
-#include "TQIODeviceTransport.h"
+#include <thrift/qt/TQTcpServer.h>
+#include <thrift/qt/TQIODeviceTransport.h>
 
 #include <QTcpSocket>
 
index 3277f5c..331198b 100644 (file)
@@ -23,7 +23,7 @@
 #include <config.h>
 #endif
 
-#include "TNonblockingServer.h"
+#include <thrift/server/TNonblockingServer.h>
 #include <thrift/concurrency/Exception.h>
 #include <thrift/transport/TSocket.h>
 #include <thrift/concurrency/PlatformThreadFactory.h>
index c135229..cd6ecea 100644 (file)
@@ -21,7 +21,7 @@
 #define _THRIFT_TRANSPORT_TBUFFERTRANSPORTS_H_ 1
 
 #include <cstring>
-#include "boost/scoped_array.hpp"
+#include <boost/scoped_array.hpp>
 
 #include <thrift/transport/TTransport.h>
 #include <thrift/transport/TVirtualTransport.h>
index 3ebad5c..cc4f9c1 100644 (file)
@@ -25,8 +25,8 @@
 #include <sys/time.h>
 #endif
 
-#include "TTransport.h"
-#include "TVirtualTransport.h"
+#include <thrift/transport/TTransport.h>
+#include <thrift/transport/TVirtualTransport.h>
 
 namespace apache { namespace thrift { namespace transport {
 
index 137e47d..258a18c 100644 (file)
@@ -21,9 +21,9 @@
 #include "config.h"
 #endif
 
-#include "TFileTransport.h"
-#include "TTransportUtils.h"
-#include "PlatformSocket.h"
+#include <thrift/transport/TFileTransport.h>
+#include <thrift/transport/TTransportUtils.h>
+#include <thrift/transport/PlatformSocket.h>
 #include <thrift/concurrency/FunctionRunner.h>
 
 #ifdef HAVE_SYS_TIME_H
index 9997c93..a2e8834 100644 (file)
@@ -21,7 +21,7 @@
 #define _THRIFT_TRANSPORT_THTTPTRANSPORT_H_ 1
 
 #include <thrift/transport/TBufferTransports.h>
-#include "TVirtualTransport.h"
+#include <thrift/transport/TVirtualTransport.h>
 
 namespace apache { namespace thrift { namespace transport {
 
index 0b5080b..92e2912 100644 (file)
@@ -17,8 +17,8 @@
 * under the License.
 */
 
-#include "TTransportException.h"
-#include "TPipe.h"
+#include <thrift/transport/TTransportException.h>
+#include <thrift/transport/TPipe.h>
 
 namespace apache { namespace thrift { namespace transport {
 
index 7742644..3c1755b 100644 (file)
@@ -23,7 +23,7 @@
 #include <thrift/transport/TTransport.h>
 #include <thrift/transport/TVirtualTransport.h>
 #ifndef _WIN32
-#  include "TSocket.h"
+#  include <thrift/transport/TSocket.h>
 #endif
 
 namespace apache { namespace thrift { namespace transport {
index b11d22f..9c3b51b 100644 (file)
@@ -22,8 +22,8 @@
 #endif
 #include <cstring>
 
-#include "TPipe.h"
-#include "TPipeServer.h"
+#include <thrift/transport/TPipe.h>
+#include <thrift/transport/TPipeServer.h>
 #include <boost/shared_ptr.hpp>
 #ifdef _WIN32
 #  include <AccCtrl.h>
index 4c211a0..88a8b6b 100755 (executable)
@@ -20,7 +20,7 @@
 #ifndef _THRIFT_TRANSPORT_TSERVERWINPIPES_H_
 #define _THRIFT_TRANSPORT_TSERVERWINPIPES_H_ 1
 
-#include "TServerTransport.h"
+#include <thrift/transport/TServerTransport.h>
 #include <boost/shared_ptr.hpp>
 #ifndef _WIN32
 #  include "TServerSocket.h"
index 8e06f30..4689e4a 100644 (file)
@@ -17,8 +17,8 @@
  * under the License.
  */
 
-#include "TSSLServerSocket.h"
-#include "TSSLSocket.h"
+#include <thrift/transport/TSSLServerSocket.h>
+#include <thrift/transport/TSSLSocket.h>
 
 namespace apache { namespace thrift { namespace transport {
 
index a4e659d..6d8e657 100644 (file)
@@ -21,7 +21,7 @@
 #define _THRIFT_TRANSPORT_TSSLSERVERSOCKET_H_ 1
 
 #include <boost/shared_ptr.hpp>
-#include "TServerSocket.h"
+#include <thrift/transport/TServerSocket.h>
 
 namespace apache { namespace thrift { namespace transport {
 
index bf29c41..1af8aa7 100644 (file)
@@ -36,8 +36,8 @@
 #include <openssl/ssl.h>
 #include <openssl/x509v3.h>
 #include <thrift/concurrency/Mutex.h>
-#include "TSSLSocket.h"
-#include "PlatformSocket.h"
+#include <thrift/transport/TSSLSocket.h>
+#include <thrift/transport/PlatformSocket.h>
 
 #define OPENSSL_VERSION_NO_THREAD_ID 0x10000000L
 
index d77c2f5..82a2e91 100644 (file)
@@ -24,7 +24,7 @@
 #include <boost/shared_ptr.hpp>
 #include <openssl/ssl.h>
 #include <thrift/concurrency/Mutex.h>
-#include "TSocket.h"
+#include <thrift/transport/TSocket.h>
 
 namespace apache { namespace thrift { namespace transport {
 
index cb3833e..4cb0fd1 100644 (file)
@@ -43,9 +43,9 @@
 #include <unistd.h>
 #endif
 
-#include "TSocket.h"
-#include "TServerSocket.h"
-#include "PlatformSocket.h"
+#include <thrift/transport/TSocket.h>
+#include <thrift/transport/TServerSocket.h>
+#include <thrift/transport/PlatformSocket.h>
 #include <boost/shared_ptr.hpp>
 
 #ifndef AF_LOCAL
index 17a00b6..4a8c029 100644 (file)
@@ -20,8 +20,8 @@
 #ifndef _THRIFT_TRANSPORT_TSERVERSOCKET_H_
 #define _THRIFT_TRANSPORT_TSERVERSOCKET_H_ 1
 
-#include "TServerTransport.h"
-#include "PlatformSocket.h"
+#include <thrift/transport/TServerTransport.h>
+#include <thrift/transport/PlatformSocket.h>
 #include <boost/shared_ptr.hpp>
 
 namespace apache { namespace thrift { namespace transport {
index 40bbc6c..d54aa62 100644 (file)
@@ -20,8 +20,8 @@
 #ifndef _THRIFT_TRANSPORT_TSERVERTRANSPORT_H_
 #define _THRIFT_TRANSPORT_TSERVERTRANSPORT_H_ 1
 
-#include "TTransport.h"
-#include "TTransportException.h"
+#include <thrift/transport/TTransport.h>
+#include <thrift/transport/TTransportException.h>
 #include <boost/shared_ptr.hpp>
 
 namespace apache { namespace thrift { namespace transport {
index b52e4d5..5bf571d 100644 (file)
@@ -20,7 +20,7 @@
 #ifdef HAVE_CONFIG_H
 #include <config.h>
 #endif
-#include "TSimpleFileTransport.h"
+#include <thrift/transport/TSimpleFileTransport.h>
 
 #include <sys/types.h>
 #ifdef HAVE_SYS_STAT_H
index 6cc52ea..985a1d3 100644 (file)
@@ -20,7 +20,7 @@
 #ifndef _THRIFT_TRANSPORT_TSIMPLEFILETRANSPORT_H_
 #define _THRIFT_TRANSPORT_TSIMPLEFILETRANSPORT_H_ 1
 
-#include "TFDTransport.h"
+#include <thrift/transport/TFDTransport.h>
 
 namespace apache { namespace thrift { namespace transport {
 
index ba0b1e3..1cffa70 100644 (file)
@@ -42,9 +42,9 @@
 #include <fcntl.h>
 
 #include <thrift/concurrency/Monitor.h>
-#include "TSocket.h"
-#include "TTransportException.h"
-#include "PlatformSocket.h"
+#include <thrift/transport/TSocket.h>
+#include <thrift/transport/TTransportException.h>
+#include <thrift/transport/PlatformSocket.h>
 
 #ifndef SOCKOPT_CAST_T
 #   ifndef _WIN32
index 60b5b51..fd5b961 100644 (file)
 
 #include <string>
 
-#include "TTransport.h"
-#include "TVirtualTransport.h"
-#include "TServerSocket.h"
-#include "PlatformSocket.h"
+#include <thrift/transport/TTransport.h>
+#include <thrift/transport/TVirtualTransport.h>
+#include <thrift/transport/TServerSocket.h>
+#include <thrift/transport/PlatformSocket.h>
 
 #ifdef HAVE_ARPA_INET_H
 #include <arpa/inet.h>
index 6bca4db..fdc5493 100644 (file)
@@ -24,7 +24,7 @@
 #include <algorithm>
 #include <iostream>
 
-#include "TSocketPool.h"
+#include <thrift/transport/TSocketPool.h>
 
 namespace apache { namespace thrift { namespace transport {
 
index f8c5ddc..7728257 100644 (file)
@@ -21,7 +21,7 @@
 #define _THRIFT_TRANSPORT_TSOCKETPOOL_H_ 1
 
 #include <vector>
-#include "TSocket.h"
+#include <thrift/transport/TSocket.h>
 
 namespace apache { namespace thrift { namespace transport {
 
index 4f0ac55..0ae9cf0 100644 (file)
@@ -17,7 +17,7 @@
  * under the License.
  */
 
-#include "GetTimeOfDay.h"
+#include <thrift/windows/GetTimeOfDay.h>
 #include "config.h"
 
 // win32
index 45aa7e8..c5f936b 100644 (file)
@@ -27,7 +27,7 @@
  * under the License.
  */
 
-#include "SocketPair.h"
+#include <thrift/windows/SocketPair.h>
 
 // stl
 #include <string.h>
index a1c7e49..2e306c6 100644 (file)
@@ -17,7 +17,7 @@
  * under the License.
  */
 
-#include "TWinsockSingleton.h"
+#include <thrift/windows/TWinsockSingleton.h>
 
 // boost
 #include <boost/assert.hpp>
index f6e4b8c..7ac229e 100644 (file)
@@ -28,7 +28,7 @@
 #error This is a MSVC header only.
 #endif
 
-#include <config.h>
+#include "config.h"
 
 // boost
 #include <boost/noncopyable.hpp>
index 86132e9..2466400 100644 (file)
@@ -17,7 +17,7 @@
  * under the License.
  */
 
-#include "WinFcntl.h"
+#include <thrift/windows/WinFcntl.h>
 
 int thrift_fcntl(THRIFT_SOCKET fd, int cmd, int flags)
 {
index 8910a14..f30c0de 100644 (file)
@@ -40,7 +40,9 @@ struct thrift_pollfd {
 };
 #endif
 
+extern "C" {
 int thrift_fcntl(THRIFT_SOCKET fd, int cmd, int flags);
 int thrift_poll(THRIFT_POLLFD *fdArray, ULONG nfds, INT timeout);
+}
 
 #endif // _THRIFT_WINDOWS_FCNTL_H_
index 25230c5..0555e07 100644 (file)
@@ -75,11 +75,11 @@ typedef boost::uint8_t    uint8_t;
 #endif
 
 #include <thrift/transport/PlatformSocket.h>
-#include "GetTimeOfDay.h"
-#include "Operators.h"
-#include "TWinsockSingleton.h"
-#include "WinFcntl.h"
-#include "SocketPair.h"
+#include <thrift/windows/GetTimeOfDay.h>
+#include <thrift/windows/Operators.h>
+#include <thrift/windows/TWinsockSingleton.h>
+#include <thrift/windows/WinFcntl.h>
+#include <thrift/windows/SocketPair.h>
 
 // windows
 #include <Winsock2.h>