X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Futils.cpp;h=bae91cc50898ad83838749f58987a9c3a182d61a;hp=f5fb3abb846d4b6e126346c91b9164e1fa6200a3;hb=6f4ac56492d45c04df0f205252b3c3210e319b4f;hpb=17667b5d28e72e99fff4609bf601c7644d79d071 diff --git a/source/utils.cpp b/source/utils.cpp index f5fb3ab..bae91cc 100644 --- a/source/utils.cpp +++ b/source/utils.cpp @@ -6,7 +6,9 @@ Distributed under the LGPL #include #include #include +#ifndef WIN32 #include +#endif #include #include "path.h" #include "utils.h" @@ -147,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