You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by ro...@apache.org on 2014/07/07 22:07:17 UTC

git commit: THRIFT-2416 Cannot use TCompactProtocol with MSVC

Repository: thrift
Updated Branches:
  refs/heads/master 5f61d29a2 -> f83c0e13b


THRIFT-2416 Cannot use TCompactProtocol with MSVC

Patch: Konrad Grochowski


Project: http://git-wip-us.apache.org/repos/asf/thrift/repo
Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/f83c0e13
Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/f83c0e13
Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/f83c0e13

Branch: refs/heads/master
Commit: f83c0e13b7db684b9cef2a50e1bcc0bfbcef0c9c
Parents: 5f61d29
Author: Roger Meier <ro...@apache.org>
Authored: Mon Jul 7 22:06:45 2014 +0200
Committer: Roger Meier <ro...@apache.org>
Committed: Mon Jul 7 22:06:45 2014 +0200

----------------------------------------------------------------------
 lib/cpp/src/thrift/windows/config.h | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/thrift/blob/f83c0e13/lib/cpp/src/thrift/windows/config.h
----------------------------------------------------------------------
diff --git a/lib/cpp/src/thrift/windows/config.h b/lib/cpp/src/thrift/windows/config.h
index dca55c9..9261ca8 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"