]> git.tdb.fi Git - libs/core.git/blobdiff - source/utils.cpp
Remove extra include of utils.h
[libs/core.git] / source / utils.cpp
index f5fb3abb846d4b6e126346c91b9164e1fa6200a3..08ab9586a31700ed9a1399b35187caba5472f37c 100644 (file)
@@ -6,7 +6,9 @@ Distributed under the LGPL
 #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"
@@ -149,7 +151,11 @@ Filename splitext(const string &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);
+#endif
 }
 
 } // namespace Path