#include <dirent.h>
#include <sys/stat.h>
#include <errno.h>
+#ifndef WIN32
#include <fnmatch.h>
+#endif
#include <msp/strutils.h>
#include "path.h"
#include "utils.h"
return result;
}
+#ifndef WIN32
int fnmatch(const string &pat, const Path &fn)
{
return ::fnmatch(pat.c_str(), fn.str().c_str(), FNM_PATHNAME);
}
+#endif
} // namespace Path
} // namespace Msp