From: ishmal Date: Fri, 17 Nov 2006 00:20:20 +0000 (+0000) Subject: library tweaks X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=be7b0d5f126473157a9fe026e7a9fd54ee4b27c5;p=inkscape.git library tweaks --- diff --git a/build.xml b/build.xml index f40afe4f0..1ffee9d10 100644 --- a/build.xml +++ b/build.xml @@ -85,7 +85,7 @@ - -Wall -O3 + -Wall -g -O3 -mms-bitfields @@ -181,7 +181,7 @@ -lgc -mwindows -lws2_32 -lintl -lm - + - - - + + diff --git a/build28.xml b/build28.xml index dcd2813f7..fcae72ee9 100644 --- a/build28.xml +++ b/build28.xml @@ -218,15 +218,15 @@ - - - + + + diff --git a/buildtool.cpp b/buildtool.cpp index bcec40c93..11d6b7fa9 100644 --- a/buildtool.cpp +++ b/buildtool.cpp @@ -4416,21 +4416,18 @@ std::vector DepTool::loadDepFile(const String &depFile) std::vector::iterator iter; for (iter = result.begin() ; iter != result.end() ; iter++) { - if (iter->path > depObject.path) + String vpath = iter->path; + vpath.append("/"); + vpath.append(iter->name); + String opath = depObject.path; + opath.append("/"); + opath.append(depObject.name); + if (vpath > opath) { inserted = true; iter = result.insert(iter, depObject); break; } - else if (iter->path == depObject.path) - { - if (iter->name > depObject.name) - { - inserted = true; - iter = result.insert(iter, depObject); - break; - } - } } if (!inserted) result.push_back(depObject);