From f83c0e13b7db684b9cef2a50e1bcc0bfbcef0c9c Mon Sep 17 00:00:00 2001 From: Roger Meier Date: Mon, 7 Jul 2014 22:06:45 +0200 Subject: [PATCH] THRIFT-2416 Cannot use TCompactProtocol with MSVC Patch: Konrad Grochowski --- lib/cpp/src/thrift/windows/config.h | 5 +++++ 1 file changed, 5 insertions(+) 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" -- 2.17.1