diff --git a/src/fs/Glob.hxx b/src/fs/Glob.hxx index 0a2e9abfc..c7d11c329 100644 --- a/src/fs/Glob.hxx +++ b/src/fs/Glob.hxx @@ -24,34 +24,30 @@ #ifdef HAVE_FNMATCH #define HAVE_CLASS_GLOB -#include #include #elif defined(_WIN32) #define HAVE_CLASS_GLOB -#include #include #endif #ifdef HAVE_CLASS_GLOB #include "util/Compiler.h" +#include + /** * A pattern that matches file names. It may contain shell wildcards * (asterisk and question mark). */ class Glob { -#if defined(HAVE_FNMATCH) || defined(_WIN32) std::string pattern; -#endif public: -#if defined(HAVE_FNMATCH) || defined(_WIN32) explicit Glob(const char *_pattern) :pattern(_pattern) {} Glob(Glob &&other) :pattern(std::move(other.pattern)) {} -#endif gcc_pure bool Check(const char *name_fs) const noexcept {