]> git.tdb.fi Git - libs/core.git/blobdiff - source/utils.cpp
Win32 tweaks
[libs/core.git] / source / utils.cpp
index f5fb3abb846d4b6e126346c91b9164e1fa6200a3..bae91cc50898ad83838749f58987a9c3a182d61a 100644 (file)
@@ -6,7 +6,9 @@ Distributed under the LGPL
 #include <dirent.h>
 #include <sys/stat.h>
 #include <errno.h>
 #include <dirent.h>
 #include <sys/stat.h>
 #include <errno.h>
+#ifndef WIN32
 #include <fnmatch.h>
 #include <fnmatch.h>
+#endif
 #include <msp/strutils.h>
 #include "path.h"
 #include "utils.h"
 #include <msp/strutils.h>
 #include "path.h"
 #include "utils.h"
@@ -147,10 +149,12 @@ Filename splitext(const string &fn)
        return result;
 }
 
        return result;
 }
 
+#ifndef WIN32
 int fnmatch(const string &pat, const Path &fn)
 {
        return ::fnmatch(pat.c_str(), fn.str().c_str(), FNM_PATHNAME);
 }
 int fnmatch(const string &pat, const Path &fn)
 {
        return ::fnmatch(pat.c_str(), fn.str().c_str(), FNM_PATHNAME);
 }
+#endif
 
 } // namespace Path
 } // namespace Msp
 
 } // namespace Path
 } // namespace Msp