diff options
author | marha <marha@users.sourceforge.net> | 2010-09-01 15:45:01 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2010-09-01 15:45:01 +0000 |
commit | 0189515275193203bb5e3bebaf185767c9f5e62c (patch) | |
tree | 832862661e7685ac389220db53a42cacb0f05d98 /tools/mhmake/src/mhmakelexer.l | |
parent | a1c59d04b8d5ce972c34bd1e5abd941b55655029 (diff) | |
download | vcxsrv-0189515275193203bb5e3bebaf185767c9f5e62c.tar.gz vcxsrv-0189515275193203bb5e3bebaf185767c9f5e62c.tar.bz2 vcxsrv-0189515275193203bb5e3bebaf185767c9f5e62c.zip |
Solved linux problems
Diffstat (limited to 'tools/mhmake/src/mhmakelexer.l')
-rw-r--r-- | tools/mhmake/src/mhmakelexer.l | 5 |
1 files changed, 5 insertions, 0 deletions
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")
{
|