Index: gpu/command_buffer/client/fenced_allocator.cc |
diff --git a/gpu/command_buffer/client/fenced_allocator.cc b/gpu/command_buffer/client/fenced_allocator.cc |
index 726fe7dafd3a311ba9e45bcad554ca43ed676aa2..dbd08eedd52d63c3a406a6a83e2ac0d80543d065 100644 |
--- a/gpu/command_buffer/client/fenced_allocator.cc |
+++ b/gpu/command_buffer/client/fenced_allocator.cc |
@@ -27,7 +27,8 @@ unsigned int RoundUp(unsigned int size) { |
} // namespace |
-#ifndef _MSC_VER |
+// VS 2015 and above allow these definitions and in this case require them. |
+#if !defined(_MSC_VER) || _MSC_VER >= 1900 |
const FencedAllocator::Offset FencedAllocator::kInvalidOffset; |
const unsigned int FencedAllocator::kAllocAlignment; |
#endif |