From 92eb9e8756f0eb85bbefac59cc8cfbfc914b70f7 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 3 Sep 2006 18:58:30 +0000 Subject: [PATCH] Add Build file Remove a stray semicolon --- Build | 14 ++++++++++++++ source/utils.cpp | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 Build 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) -- 2.43.0