From: Roger Meier Date: Mon, 7 Jul 2014 20:06:45 +0000 (+0200) Subject: THRIFT-2416 Cannot use TCompactProtocol with MSVC X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=f83c0e13b7db684b9cef2a50e1bcc0bfbcef0c9c;p=common%2Fthrift.git THRIFT-2416 Cannot use TCompactProtocol with MSVC Patch: Konrad Grochowski --- diff --git a/lib/cpp/src/thrift/windows/config.h b/lib/cpp/src/thrift/windows/config.h index dca55c9e..9261ca8d 100644 --- a/lib/cpp/src/thrift/windows/config.h +++ b/lib/cpp/src/thrift/windows/config.h @@ -53,6 +53,11 @@ # define _WIN32_WINNT 0x0601 #endif +#if defined(_M_IX86) || defined(_M_X64) +# define ARITHMETIC_RIGHT_SHIFT 1 +# define SIGNED_RIGHT_SHIFT_IS 1 +#endif + #pragma warning(disable: 4996) // Deprecated posix name. #define VERSION "1.0.0-dev"