X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2FKM_fileio.h;h=58a27099cf00d4184f307069a729877914973c42;hb=3bb652da6ea2765b1538d0713cefa284238c8bdb;hp=43b164df2c5fc58681dfdf12222712717a5ba228;hpb=3a3aa48a5a4f7324a9e4c2273d0747d7f58a2813;p=asdcplib.git diff --git a/src/KM_fileio.h b/src/KM_fileio.h index 43b164d..58a2709 100755 --- a/src/KM_fileio.h +++ b/src/KM_fileio.h @@ -1,5 +1,5 @@ /* -Copyright (c) 2004-2006, John Hurst +Copyright (c) 2004-2007, John Hurst All rights reserved. Redistribution and use in source and binary forms, with or without @@ -141,6 +141,7 @@ namespace Kumu inline bool Match(const std::string& s) const { return true; } }; +#ifndef KM_WIN32 class PathMatchRegex : public IPathMatch { regex_t m_regex; @@ -166,11 +167,12 @@ namespace Kumu virtual ~PathMatchGlob(); bool Match(const std::string& s) const; }; +#endif /* !KM_WIN32 */ // Search all paths in SearchPaths for filenames matching Pattern (no directories are returned). // Put results in FoundPaths. Returns after first find if one_shot is true. PathList_t& FindInPath(const IPathMatch& Pattern, const std::string& SearchDir, - PathList_t& FoundPaths, bool one_shot, char separator); + PathList_t& FoundPaths, bool one_shot = false, char separator = '/'); PathList_t& FindInPaths(const IPathMatch& Pattern, const PathList_t& SearchPaths, PathList_t& FoundPaths, bool one_shot = false, char separator = '/');