From 93d2627ccaffde0bf3367337f83d8c041f29ff0e 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..4d3a727e9f 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 (OCTAVE_USE_WINDOWS_API) || defined (__CYGWIN__) 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 (OCTAVE_USE_WINDOWS_API) || defined (__CYGWIN__) 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 (OCTAVE_USE_WINDOWS_API) || defined (__CYGWIN__) // gnulib's fnmatch replacement is slow on Windows. // We don't need full POSIX compatibility to match symbol patterns.