From e9348e5fb751ebeba77e622af6d4241be8f1d51e Mon Sep 17 00:00:00 2001 From: marha Date: Thu, 27 Oct 2011 10:24:02 +0200 Subject: Make sure that the mhmakecoonf env variable has the correct case --- tools/mhmake/src/util.cpp | 4 ++-- tools/mhmake/src/util.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tools/mhmake') diff --git a/tools/mhmake/src/util.cpp b/tools/mhmake/src/util.cpp index 5864fc7de..3e20706dd 100644 --- a/tools/mhmake/src/util.cpp +++ b/tools/mhmake/src/util.cpp @@ -584,9 +584,9 @@ loadedmakefile::loadedmakefile(const fileinfo *pDir, vector &Args,const { const string &RootDir=loadedmakefile::sm_Statics.m_MhMakeConf->GetFullFileName(); string MakeDir=m_MakeDir->GetFullFileName(); - if (RootDir.length()>MakeDir.length() || _strnicmp(RootDir.c_str(),MakeDir.c_str(),RootDir.length())) + if (RootDir.length()>MakeDir.length() || strncmp(RootDir.c_str(),MakeDir.c_str(),RootDir.length())) { - cerr<<"mhmake needs to run in a directory that is a subdirectory of the directory specified with %MHMAKECONF : "<GetFullFileName()<GetFullFileName()<<"\nComparison is case sensitive!\n"; exit(1); } } diff --git a/tools/mhmake/src/util.h b/tools/mhmake/src/util.h index a9bd76cfc..adb154497 100644 --- a/tools/mhmake/src/util.h +++ b/tools/mhmake/src/util.h @@ -50,7 +50,7 @@ #define PLATFORM "linux" #endif -#define MHMAKEVER "3.0.8" +#define MHMAKEVER "3.0.9" class makecommand { -- cgit v1.2.3