aboutsummaryrefslogtreecommitdiff
path: root/tools/mhmake/src
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2010-09-01 15:45:01 +0000
committermarha <marha@users.sourceforge.net>2010-09-01 15:45:01 +0000
commit0189515275193203bb5e3bebaf185767c9f5e62c (patch)
tree832862661e7685ac389220db53a42cacb0f05d98 /tools/mhmake/src
parenta1c59d04b8d5ce972c34bd1e5abd941b55655029 (diff)
downloadvcxsrv-0189515275193203bb5e3bebaf185767c9f5e62c.tar.gz
vcxsrv-0189515275193203bb5e3bebaf185767c9f5e62c.tar.bz2
vcxsrv-0189515275193203bb5e3bebaf185767c9f5e62c.zip
Solved linux problems
Diffstat (limited to 'tools/mhmake/src')
-rw-r--r--tools/mhmake/src/mhmakefileparser.h2
-rw-r--r--tools/mhmake/src/mhmakelexer.l5
2 files changed, 6 insertions, 1 deletions
diff --git a/tools/mhmake/src/mhmakefileparser.h b/tools/mhmake/src/mhmakefileparser.h
index 73d3979dc..1efb37c39 100644
--- a/tools/mhmake/src/mhmakefileparser.h
+++ b/tools/mhmake/src/mhmakefileparser.h
@@ -104,7 +104,7 @@ protected:
static mh_time_t m_sBuildTime;
private:
- string mhmakefileparser::ResolveExpression(const string &InExpr,string &Rest) const;
+ string ResolveExpression(const string &InExpr,string &Rest) const;
public:
#ifdef _DEBUG
diff --git a/tools/mhmake/src/mhmakelexer.l b/tools/mhmake/src/mhmakelexer.l
index 59aaad0ca..8796e70c4 100644
--- a/tools/mhmake/src/mhmakelexer.l
+++ b/tools/mhmake/src/mhmakelexer.l
@@ -447,6 +447,11 @@ load_makefile {
<IF>[ \t\r]*[a-zA-Z0-9_]+[ \t\r]*\n {
unput( '\n' );
m_IndentStack.push(0);
+#ifndef WIN32
+ int lastidx=strlen((const char *)yytext)-1;
+ if (yytext[lastidx]=='\r')
+ yytext[lastidx]='\0';
+#endif
string Val=GetParser()->ExpandVar((const char *)yytext);
if (Val.empty() || Val=="0")
{