2023-03-06 14:42:04 +01:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
// Copyright The Music Player Daemon Project
|
2021-05-19 17:39:03 +02:00
|
|
|
|
2021-05-19 17:27:51 +02:00
|
|
|
#ifdef _WIN32
|
|
|
|
// COM needs the "MSG" typedef, and shlwapi.h includes COM headers
|
|
|
|
#undef NOUSER
|
|
|
|
#endif
|
|
|
|
|
2021-05-19 17:39:03 +02:00
|
|
|
#include "Glob.hxx"
|
|
|
|
|
|
|
|
#ifdef _WIN32
|
|
|
|
#include <shlwapi.h>
|
|
|
|
|
|
|
|
bool
|
|
|
|
Glob::Check(const char *name_fs) const noexcept
|
|
|
|
{
|
|
|
|
return PathMatchSpecA(name_fs, pattern.c_str());
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|