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

Unified Diff: base/time/time_win.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
« no previous file with comments | « no previous file | gpu/command_buffer/client/fenced_allocator.cc » ('j') | ui/gfx/icon_util.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/time/time_win.cc
diff --git a/base/time/time_win.cc b/base/time/time_win.cc
index bc058040d0c7b5a23923383741bbc811713c6485..2e3dc2e0508ee6736c93d9d9912b2e12e349ffdf 100644
--- a/base/time/time_win.cc
+++ b/base/time/time_win.cc
@@ -131,6 +131,11 @@ uint64 QPCNowRaw() {
// static
const int64 Time::kTimeTToMicrosecondsOffset = INT64_C(11644473600000000);
+// VS 2015 and above allow these definitions and in this case require them.
+#if _MSC_VER >= 1900
+const int64 base::Time::kQPCOverflowThreshold;
+#endif
+
// static
Time Time::Now() {
if (initial_time == 0)
« no previous file with comments | « no previous file | gpu/command_buffer/client/fenced_allocator.cc » ('j') | ui/gfx/icon_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698