summaryrefslogtreecommitdiffstats
path: root/src/build.cc
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2012-01-22 18:22:45 (GMT)
committerEvan Martin <martine@danga.com>2012-01-22 18:22:45 (GMT)
commitfaac236d26b206cd6a8f4aa6e2bca8a83f0f83fa (patch)
treebb1354e6bfb55e7540011806f3b511e79a10da63 /src/build.cc
parent2ef3a546476987d6565141337c6309e7ae60f9fd (diff)
downloadNinja-faac236d26b206cd6a8f4aa6e2bca8a83f0f83fa.zip
Ninja-faac236d26b206cd6a8f4aa6e2bca8a83f0f83fa.tar.gz
Ninja-faac236d26b206cd6a8f4aa6e2bca8a83f0f83fa.tar.bz2
windows: use _WIN32 define everywhere
Rather than mixing use of WIN32 and _WIN32.
Diffstat (limited to 'src/build.cc')
-rw-r--r--src/build.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/build.cc b/src/build.cc
index 8d0abce..cc877e5 100644
--- a/src/build.cc
+++ b/src/build.cc
@@ -65,7 +65,7 @@ BuildStatus::BuildStatus(const BuildConfig& config)
start_time_millis_(GetTimeMillis()),
last_update_millis_(start_time_millis_),
started_edges_(0), finished_edges_(0), total_edges_(0) {
-#ifndef WIN32
+#ifndef _WIN32
const char* term = getenv("TERM");
smart_terminal_ = isatty(1) && term && string(term) != "dumb";
#else
@@ -171,7 +171,7 @@ void BuildStatus::PrintStatus(Edge* edge) {
int progress_chars = printf("[%d/%d] ", started_edges_, total_edges_);
-#ifndef WIN32
+#ifndef _WIN32
if (smart_terminal_ && !force_full_command) {
// Limit output to width of the terminal if provided so we don't cause
// line-wrapping.