Index: third_party/protobuf/src/google/protobuf/wire_format_lite.cc |
diff --git a/third_party/protobuf/src/google/protobuf/wire_format_lite.cc b/third_party/protobuf/src/google/protobuf/wire_format_lite.cc |
index 6c21478caed0e2e94c66e03b80437d667d0e9ae7..e67c6b7ab7910f4ca5d74d6b5334861b3d83c4ff 100644 |
--- a/third_party/protobuf/src/google/protobuf/wire_format_lite.cc |
+++ b/third_party/protobuf/src/google/protobuf/wire_format_lite.cc |
@@ -47,8 +47,9 @@ namespace google { |
namespace protobuf { |
namespace internal { |
-#ifndef _MSC_VER // MSVC doesn't like definitions of inline constants, GCC |
- // requires them. |
+#if !defined(_MSC_VER) || _MSC_VER >= 1900 |
+// Old version of MSVC doesn't like definitions of inline constants, GCC |
+// requires them. |
const int WireFormatLite::kMessageSetItemStartTag; |
const int WireFormatLite::kMessageSetItemEndTag; |
const int WireFormatLite::kMessageSetTypeIdTag; |