X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Futils.cpp;h=08ab9586a31700ed9a1399b35187caba5472f37c;hp=bae91cc50898ad83838749f58987a9c3a182d61a;hb=e5f6f4e42a73330b2ec0d88f8013cecd03ec3bc0;hpb=1a9e1137302a33850f7ccd7b6fe1b4cfde7c6b3a diff --git a/source/utils.cpp b/source/utils.cpp index bae91cc..08ab958 100644 --- a/source/utils.cpp +++ b/source/utils.cpp @@ -149,12 +149,14 @@ Filename splitext(const string &fn) return result; } -#ifndef WIN32 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 } // namespace Msp