aboutsummaryrefslogtreecommitdiff
path: root/tools/mhmake
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-10-27 10:24:02 +0200
committermarha <marha@users.sourceforge.net>2011-10-27 10:24:02 +0200
commite9348e5fb751ebeba77e622af6d4241be8f1d51e (patch)
tree2f0dfe4c7a16715ad7ae087b62c206690872d9dd /tools/mhmake
parente05025bd50cba8c6788e60128af8f07b78a57c2d (diff)
downloadvcxsrv-e9348e5fb751ebeba77e622af6d4241be8f1d51e.tar.gz
vcxsrv-e9348e5fb751ebeba77e622af6d4241be8f1d51e.tar.bz2
vcxsrv-e9348e5fb751ebeba77e622af6d4241be8f1d51e.zip
Make sure that the mhmakecoonf env variable has the correct case
Diffstat (limited to 'tools/mhmake')
-rw-r--r--tools/mhmake/src/util.cpp4
-rw-r--r--tools/mhmake/src/util.h2
2 files changed, 3 insertions, 3 deletions
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<string> &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 : "<<RootDir<<", make dir : "<<m_MakeDir->GetFullFileName()<<endl;
+ cerr<<"mhmake needs to run in a directory that is a subdirectory of the directory specified with %MHMAKECONF : "<<RootDir<<", make dir : "<<m_MakeDir->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
{