Code Review
/
common
/
thrift.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
5f61d29
)
THRIFT-2416 Cannot use TCompactProtocol with MSVC
author
Roger Meier
<roger@apache.org>
Mon, 7 Jul 2014 20:06:45 +0000
(22:06 +0200)
committer
Roger 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
patch
|
blob
|
history
diff --git
a/lib/cpp/src/thrift/windows/config.h
b/lib/cpp/src/thrift/windows/config.h
index
dca55c9
..
9261ca8
100644
(file)
--- 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"