#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"
int fnmatch(const string &pat, const Path &fn)
{
+#ifdef WIN32
+ return -1;
+#else
return ::fnmatch(pat.c_str(), fn.str().c_str(), FNM_PATHNAME);
+#endif
}
} // namespace Path