summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorikifof <38361739+ikifof@users.noreply.github.com>2018-11-07 10:32:29 (GMT)
committerJan Niklas Hasse <jhasse@bixense.com>2018-11-07 10:32:29 (GMT)
commit0db30f237ccc66a4fdf19d88666fc1f7e415a562 (patch)
treecd466d730e52cedc5e18153cdbd964d31d321b0d /src
parentcf51ff558f0fb5b736336182ff4f5df20ca3f8a4 (diff)
downloadNinja-0db30f237ccc66a4fdf19d88666fc1f7e415a562.zip
Ninja-0db30f237ccc66a4fdf19d88666fc1f7e415a562.tar.gz
Ninja-0db30f237ccc66a4fdf19d88666fc1f7e415a562.tar.bz2
Fix older VS compatibility issues and PDB files generation issue. (#1435)
Fixes #1411.
Diffstat (limited to 'src')
-rw-r--r--src/build_log.cc3
-rw-r--r--src/deps_log.cc3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/build_log.cc b/src/build_log.cc
index 2a65f9d..c4a08a0 100644
--- a/src/build_log.cc
+++ b/src/build_log.cc
@@ -35,6 +35,9 @@
#include "graph.h"
#include "metrics.h"
#include "util.h"
+#if defined(_MSC_VER) && (_MSC_VER < 1800)
+#define strtoll _strtoi64
+#endif
// Implementation details:
// Each run's log appends to the log file.
diff --git a/src/deps_log.cc b/src/deps_log.cc
index eb81a37..0bb96f3 100644
--- a/src/deps_log.cc
+++ b/src/deps_log.cc
@@ -20,6 +20,9 @@
#include <string.h>
#ifndef _WIN32
#include <unistd.h>
+#elif defined(_MSC_VER) && (_MSC_VER < 1900)
+typedef __int32 int32_t;
+typedef unsigned __int32 uint32_t;
#endif
#include "graph.h"