]> git.tdb.fi Git - builder.git/blobdiff - source/component.cpp
Adapt to changes in msppath
[builder.git] / source / component.cpp
index 07cd6ea5aee874df889e4c34c49c77ae12ae5356..f4e8fc2ee734f11e3306b38a03a60e7309d8a027 100644 (file)
@@ -81,7 +81,7 @@ void Component::create_targets() const
        for(PathList::const_iterator i=files.begin(); i!=files.end(); ++i)
        {
                string basename=(*i)[-1];
-               string ext=Path::splitext(basename).ext;
+               string ext=splitext(basename).ext;
                if((ext==".cpp" || ext==".c") && build_exe)
                {
                        SourceFile *src=new SourceFile(builder, this, i->str());
@@ -146,8 +146,7 @@ PathList Component::collect_source_files() const
        PathList files;
        for(PathList::const_iterator i=sources.begin(); i!=sources.end(); ++i)
        {
-               struct stat st;
-               stat(*i, st);
+               struct stat st=stat(*i);
                if(S_ISDIR(st.st_mode))
                {
                        list<string> sfiles=list_files(*i);