THRIFT-2416 Cannot use TCompactProtocol with MSVC
authorRoger Meier <roger@apache.org>
Mon, 7 Jul 2014 20:06:45 +0000 (22:06 +0200)
committerRoger Meier <roger@apache.org>
Mon, 7 Jul 2014 20:06:45 +0000 (22:06 +0200)
Patch: Konrad Grochowski

lib/cpp/src/thrift/windows/config.h

index dca55c9..9261ca8 100644 (file)
 #  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"