Make fnmatch return failure on win32 instead of not existing
Distributed under the LGPL
*/
#include <msp/strutils.h>
Distributed under the LGPL
*/
#include <msp/strutils.h>
#include "path.h"
#include "utils.h"
#include "path.h"
#include "utils.h"
int fnmatch(const string &pat, const Path &fn)
{
int fnmatch(const string &pat, const Path &fn)
{
+#ifdef WIN32
+ return -1;
+#else
return ::fnmatch(pat.c_str(), fn.str().c_str(), FNM_PATHNAME);
return ::fnmatch(pat.c_str(), fn.str().c_str(), FNM_PATHNAME);
} // namespace Path
} // namespace Msp
} // namespace Path
} // namespace Msp