20 #ifndef MPD_FS_GLOB_XX
21 #define MPD_FS_GLOB_XX
26 #define HAVE_CLASS_GLOB
30 #define HAVE_CLASS_GLOB
35 #ifdef HAVE_CLASS_GLOB
43 #if defined(HAVE_FNMATCH) || defined(WIN32)
48 #if defined(HAVE_FNMATCH) || defined(WIN32)
49 explicit Glob(
const char *_pattern)
53 :pattern(std::move(other.pattern)) {}
57 bool Check(
const char *name_fs)
const {
59 return fnmatch(pattern.c_str(), name_fs, 0) == 0;
61 return PathMatchSpecA(name_fs, pattern.c_str());