From cdf33d8b873f6a5faa07f602d7f8747943f0da9b Mon Sep 17 00:00:00 2001 From: Michael Jones Date: Wed, 13 Nov 2019 21:15:55 -0600 Subject: Fix invalid preprocessor #if --- src/graph.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graph.cc b/src/graph.cc index facb76d..3214513 100644 --- a/src/graph.cc +++ b/src/graph.cc @@ -383,7 +383,7 @@ std::string EdgeEnv::MakePathList(const Node* const* const span, result.push_back(sep); const string& path = (*i)->PathDecanonicalized(); if (escape_in_out_ == kShellEscape) { -#if _WIN32 +#ifdef _WIN32 GetWin32EscapedString(path, &result); #else GetShellEscapedString(path, &result); -- cgit v0.12 From f8497798a3cb2528faaec8a38acee12f554caf41 Mon Sep 17 00:00:00 2001 From: Michael Jones Date: Wed, 13 Nov 2019 21:16:43 -0600 Subject: Update graph_test.cc --- src/graph_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graph_test.cc b/src/graph_test.cc index c8cca1c..660943f 100644 --- a/src/graph_test.cc +++ b/src/graph_test.cc @@ -218,7 +218,7 @@ TEST_F(GraphTest, VarInOutPathEscaping) { "build a$ b: cat no'space with$ space$$ no\"space2\n")); Edge* edge = GetNode("a b")->in_edge(); -#if _WIN32 +#ifdef _WIN32 EXPECT_EQ("cat no'space \"with space$\" \"no\\\"space2\" > \"a b\"", edge->EvaluateCommand()); #else -- cgit v0.12