From e21a44de9feb17acee0ef26fc1fb16582f249a32 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 10 May 2002 16:56:11 +0000 Subject: [PATCH] test for HAVE_FNMATCH, not HAVE_FNMATCH_H git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15485 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/filefn.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/filefn.cpp b/src/common/filefn.cpp index 587a0582f5..2770a37f38 100644 --- a/src/common/filefn.cpp +++ b/src/common/filefn.cpp @@ -1698,7 +1698,7 @@ bool wxIsWild( const wxString& pattern ) bool wxMatchWild( const wxString& pat, const wxString& text, bool dot_special ) -#if defined(HAVE_FNMATCH_H) +#ifdef HAVE_FNMATCH { // this probably won't work well for multibyte chars in Unicode mode? if(dot_special) @@ -1706,7 +1706,7 @@ bool wxMatchWild( const wxString& pat, const wxString& text, bool dot_special ) else return fnmatch(pat.fn_str(), text.fn_str(), 0) == 0; } -#else +#else // !HAVE_FNMATCH // #pragma error Broken implementation of wxMatchWild() -- needs fixing! @@ -1847,7 +1847,7 @@ bool wxMatchWild( const wxString& pat, const wxString& text, bool dot_special ) return ((*str == wxT('\0')) && (*pattern == wxT('\0'))); }; -#endif +#endif // HAVE_FNMATCH/!HAVE_FNMATCH #ifdef __VISUALC__ #pragma warning(default:4706) // assignment within conditional expression -- 2.50.0