summaryrefslogtreecommitdiff
path: root/lib/Support/Chrono.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Support/Chrono.cpp')
-rw-r--r--lib/Support/Chrono.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Support/Chrono.cpp b/lib/Support/Chrono.cpp
index 84f5aab6fc45..a2626a89eb63 100644
--- a/lib/Support/Chrono.cpp
+++ b/lib/Support/Chrono.cpp
@@ -8,7 +8,7 @@
//===----------------------------------------------------------------------===//
#include "llvm/Support/Chrono.h"
-#include "llvm/Config/config.h"
+#include "llvm/Config/llvm-config.h"
#include "llvm/Support/Format.h"
#include "llvm/Support/raw_ostream.h"
@@ -32,7 +32,7 @@ static inline struct tm getStructTM(TimePoint<> TP) {
assert(LT);
(void)LT;
#endif
-#if defined(LLVM_ON_WIN32)
+#if defined(_WIN32)
int Error = ::localtime_s(&Storage, &OurTime);
assert(!Error);
(void)Error;