diff options
Diffstat (limited to 'tools/mhmake/src/fileinfo.h')
-rw-r--r-- | tools/mhmake/src/fileinfo.h | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/tools/mhmake/src/fileinfo.h b/tools/mhmake/src/fileinfo.h index bb5e0ce71..1d70f0df1 100644 --- a/tools/mhmake/src/fileinfo.h +++ b/tools/mhmake/src/fileinfo.h @@ -257,6 +257,7 @@ public: void InsertDeps(vector<fileinfo*> &Deps)
{
+ #ifdef _DEBUG
vector<fileinfo*> NewDeps;
vector<fileinfo*>::const_iterator It=Deps.begin();
vector<fileinfo*>::const_iterator ItEnd=Deps.end();
@@ -274,17 +275,9 @@ public: }
if (NewDeps.size())
m_Deps.insert(m_Deps.begin(),NewDeps.begin(),NewDeps.end());
- }
- void AddMainDep(fileinfo* pMainDep)
- {
- if (&*pMainDep==this)
- {
- #ifdef _DEBUG
- cout << GetQuotedFullFileName()<<" is directly dependent on itself\n";
- #endif
- return;
- }
- m_Deps.insert(m_Deps.begin(),pMainDep);
+ #else
+ m_Deps.insert(m_Deps.begin(),Deps.begin(),Deps.end());
+ #endif
}
vector<fileinfo*> &GetDeps(void)
{
|