From: Mikko Rasa Date: Sun, 3 Sep 2006 18:58:30 +0000 (+0000) Subject: Add Build file X-Git-Tag: fs-1.0~19 X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=92eb9e8756f0eb85bbefac59cc8cfbfc914b70f7;p=libs%2Fcore.git Add Build file Remove a stray semicolon --- diff --git a/Build b/Build new file mode 100644 index 0000000..bfd56d3 --- /dev/null +++ b/Build @@ -0,0 +1,14 @@ +package "msppath" +{ + version "0.1"; + description "Filesystem utilities"; + + require "mspmisc"; + + library "msppath" + { + source "source"; + install true; + install_headers "msp/path"; + }; +}; diff --git a/source/utils.cpp b/source/utils.cpp index af8ea8a..45cd614 100644 --- a/source/utils.cpp +++ b/source/utils.cpp @@ -185,7 +185,7 @@ Path relative(const Path &path, const Path &base) Extracts the basename from the given path. Same thing as Path::Path(p)[-1], but faster. */ -string basename(const std::string &p); +string basename(const std::string &p) { unsigned slash=p.rfind(DIRCHAR); if(slash==string::npos)