From 58b9d8ebb5e4e9aaf60f08f83f3236df04af39e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=BCtzel?= Date: Tue, 30 Jan 2024 10:20:09 +0100 Subject: [PATCH] glob-match: Use manual wildcard matching also for Cygwin. --- liboctave/util/glob-match.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/liboctave/util/glob-match.cc b/liboctave/util/glob-match.cc index 8cdd98f820..fbf2aa4503 100644 --- a/liboctave/util/glob-match.cc +++ b/liboctave/util/glob-match.cc @@ -64,7 +64,7 @@ symbol_match::symbol_match (const std::string& pattern) { m_pat = pattern; -#if defined (OCTAVE_USE_WINDOWS_API) +#if defined (_WIN32) m_glob = nullptr; #else m_glob = std::unique_ptr {new glob_match {pattern}}; @@ -75,7 +75,7 @@ symbol_match::symbol_match (const symbol_match& in) { m_pat = in.m_pat; -#if defined (OCTAVE_USE_WINDOWS_API) +#if defined (_WIN32) m_glob = nullptr; #else m_glob = std::unique_ptr {new glob_match {m_pat}}; @@ -85,7 +85,7 @@ symbol_match::symbol_match (const symbol_match& in) bool symbol_match::match (const std::string& sym) { -#if defined (OCTAVE_USE_WINDOWS_API) +#if defined (_WIN32) // gnulib's fnmatch replacement is slow on Windows. // We don't need full POSIX compatibility to match symbol patterns.