]> git.tdb.fi Git - libs/core.git/blobdiff - source/utils.cpp
Win32 tweaks
[libs/core.git] / source / utils.cpp
index a7037ce33640a5d876c17ba16430443a484e884c..bae91cc50898ad83838749f58987a9c3a182d61a 100644 (file)
@@ -1,7 +1,14 @@
+/*
+This file is part of libmsppath
+Copyright © 2006  Mikko Rasa, Mikkosoft Productions
+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"
@@ -142,10 +149,12 @@ Filename splitext(const string &fn)
        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