X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=kvstore%2Fprotobufrpc%2Futil.h;fp=kvstore%2Fprotobufrpc%2Futil.h;h=966921fe54eea6a0f7204ad40871900c9f73d743;hb=3c2cbef21a11c4d86952922f4da7b830a91423f9;hp=0000000000000000000000000000000000000000;hpb=db0d4c10ea7abfa2546f73e96784ebf554342977;p=bluesky.git diff --git a/kvstore/protobufrpc/util.h b/kvstore/protobufrpc/util.h new file mode 100644 index 0000000..966921f --- /dev/null +++ b/kvstore/protobufrpc/util.h @@ -0,0 +1,37 @@ +#ifndef _UTIL_H_ +#define _UTIL_H_ 1 + +#include + +#if BOOST_VERSION <= 103500 +#include +#include +#include +#include +#include +//typedef boost::condition condition_variable ; +//typedef boost::detail::thread::scoped_lock scoped_lock; +using asio::ip::tcp; +using asio::error_code; +using asio::buffers_begin; +namespace syserr=asio; +#else +#if BOOST_VERSION < 104000 +#include +#include +#include +using boost::asio::ip::tcp; +using boost::system::error_code; +using boost::system::system_error; +namespace syserr=boost::system; +#else +#include +#include +using boost::asio::ip::tcp; +using boost::system::error_code; +using boost::system::system_error; +namespace syserr=boost::system; +#endif +#endif + +#endif