X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Futils.cpp;h=5c7d6a230803bcaf47c08b9e43b21aaeb2e55ae6;hp=af8ea8a37008eca04ce6d5e5403e53f09b1fdea3;hb=174debf33b2001b3244c007825d0a5539566bd8c;hpb=e48e54c5690d086c3f3ffb6f34f424f253bfb6b1 diff --git a/source/utils.cpp b/source/utils.cpp index af8ea8a..5c7d6a2 100644 --- a/source/utils.cpp +++ b/source/utils.cpp @@ -9,7 +9,7 @@ Distributed under the LGPL #ifndef WIN32 #include #endif -#include +#include #include "path.h" #include "utils.h" @@ -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)