X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Futils.cpp;h=bae91cc50898ad83838749f58987a9c3a182d61a;hp=a7037ce33640a5d876c17ba16430443a484e884c;hb=6f4ac56492d45c04df0f205252b3c3210e319b4f;hpb=9a8993b390544fb3e6b23ed562e2a2d4a62e4a7c diff --git a/source/utils.cpp b/source/utils.cpp index a7037ce..bae91cc 100644 --- a/source/utils.cpp +++ b/source/utils.cpp @@ -1,7 +1,14 @@ +/* +This file is part of libmsppath +Copyright © 2006 Mikko Rasa, Mikkosoft Productions +Distributed under the LGPL +*/ #include #include #include +#ifndef WIN32 #include +#endif #include #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