]> git.tdb.fi Git - libs/core.git/blobdiff - source/utils.cpp
Add missing includes
[libs/core.git] / source / utils.cpp
index d9522a3c6551d264ccf9896ef780b340220a99ef..33981b227e744baa5f20eae390694e5ddb9435f8 100644 (file)
@@ -6,7 +6,8 @@ Distributed under the LGPL
 */
 
 #include <dirent.h>
-#include <errno.h>
+#include <cerrno>
+#include <cstdlib>
 #include <msp/core/except.h>
 #ifndef WIN32
 #include <fnmatch.h>
@@ -189,7 +190,7 @@ Path relative(const Path &path, const Path &base)
 {
        Path::Iterator i=path.begin();
        Path::Iterator j=base.begin();
-       for(; (i!=path.end() && j!=base.end() && *i==*j); ++i,++j);
+       for(; (i!=path.end() && j!=base.end() && *i==*j); ++i, ++j) ;
 
        Path result;
        for(; j!=base.end(); ++j)