Skip to content

Commit

Permalink
glob-match: Use manual wildcard matching also for Cygwin.
Browse files Browse the repository at this point in the history
  • Loading branch information
mmuetzel committed Jan 30, 2024
1 parent 571fbb6 commit 93d2627
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions liboctave/util/glob-match.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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<glob_match> {new glob_match {pattern}};
Expand All @@ -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<glob_match> {new glob_match {m_pat}};
Expand All @@ -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.
Expand Down

0 comments on commit 93d2627

Please sign in to comment.