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/functions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/mhmake/src/functions.cpp') diff --git a/tools/mhmake/src/functions.cpp b/tools/mhmake/src/functions.cpp index 97dc99c01..1602112c3 100644 --- a/tools/mhmake/src/functions.cpp +++ b/tools/mhmake/src/functions.cpp @@ -525,7 +525,7 @@ string mhmakefileparser::f_addprefix(const string & Arg) const string PreFix; pTmp=NextCharItem(pTmp,PreFix,','); #ifdef _DEBUG - if (!*pTmp) { + if (PreFix.empty()) { throw ("Wrong number of arguments in function addprefix"); } #endif -- cgit v1.2.3