diff options
Diffstat (limited to 'src/fs/Glob.hxx')
-rw-r--r-- | src/fs/Glob.hxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fs/Glob.hxx b/src/fs/Glob.hxx index 1f8402089..b15972f0d 100644 --- a/src/fs/Glob.hxx +++ b/src/fs/Glob.hxx @@ -26,7 +26,7 @@ #define HAVE_CLASS_GLOB #include <string> #include <fnmatch.h> -#elif defined(WIN32) +#elif defined(_WIN32) #define HAVE_CLASS_GLOB #include <string> #include <shlwapi.h> @@ -40,12 +40,12 @@ * (asterisk and question mark). */ class Glob { -#if defined(HAVE_FNMATCH) || defined(WIN32) +#if defined(HAVE_FNMATCH) || defined(_WIN32) std::string pattern; #endif public: -#if defined(HAVE_FNMATCH) || defined(WIN32) +#if defined(HAVE_FNMATCH) || defined(_WIN32) explicit Glob(const char *_pattern) :pattern(_pattern) {} @@ -57,7 +57,7 @@ public: bool Check(const char *name_fs) const noexcept { #ifdef HAVE_FNMATCH return fnmatch(pattern.c_str(), name_fs, 0) == 0; -#elif defined(WIN32) +#elif defined(_WIN32) return PathMatchSpecA(name_fs, pattern.c_str()); #endif } |