Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(463)

Unified Diff: gpu/command_buffer/client/fenced_allocator.cc

Issue 1428003002: More const int definitions for VC++ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add periods. Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
« no previous file with comments | « base/time/time_win.cc ('k') | ui/gfx/icon_util.cc » ('j') | ui/gfx/icon_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698