From 75ef19188d021a5e965198bde774c1c33bedc1f3 Mon Sep 17 00:00:00 2001 From: marha Date: Sat, 30 Oct 2010 18:34:27 +0000 Subject: Increased gnu make compatibility. --- tools/mhmake/src/util.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/mhmake/src/util.cpp') diff --git a/tools/mhmake/src/util.cpp b/tools/mhmake/src/util.cpp index 2e26cf2e7..63bdb767b 100644 --- a/tools/mhmake/src/util.cpp +++ b/tools/mhmake/src/util.cpp @@ -470,7 +470,7 @@ loadedmakefile::loadedmakefile(const fileinfo *pDir, vector &Args,const break; case 'C': #ifdef _DEBUG - if ((*ArgIt)[2]=='D') + if (ArgIt->size()>2 && (*ArgIt)[2]=='D') { g_CheckCircularDeps=true; break; @@ -593,7 +593,7 @@ void loadedmakefile::LoadMakefile() cout << "Loading makefile "<GetQuotedFullFileName()<(new mhmakeparser(m_CommandLineVars)); + m_pParser=refptr(new mhmakeparser(m_CommandLineVars)); // Add the MAKECMDGOALS environment variable string MakeCmdGoals; -- cgit v1.2.3