git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@756
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#include <dir.h>
#endif
+#include "wx/setup.h"
+#ifdef HAVE_FNMATCH_H
+#include "fnmatch.h"
+#endif
+
#ifdef __WINDOWS__
#include "windows.h"
#endif
};
+#ifdef HAVE_FNMATCH_H
+{
+ // dot_special: what is it supposed to do?
+ return fnmatch(pat.c_str(), text.c_str(), FNM_PERIOD) == 0;
+}
+#else
+
+#pragma error Broken implementation of wxMatchWild() -- needs fixing!
+ /*
+ * WARNING: this code is broken!
+ */
bool wxMatchWild( const wxString& pat, const wxString& text, bool dot_special )
{
wxString tmp1 = pat;
pattern++;
return ((*str == '\0') && (*pattern == '\0'));
};
+#endif
// Purpose:
// Author: Robert Roebling
// Created: 01/02/97
-// Id:
+// Id: $Id$
// Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#include <netdb.h>
#include <signal.h>
+
#ifdef __SVR4__
#include <sys/systeminfo.h>
#endif
// Purpose:
// Author: Robert Roebling
// Created: 01/02/97
-// Id:
+// Id: $Id$
// Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#include <netdb.h>
#include <signal.h>
+
#ifdef __SVR4__
#include <sys/systeminfo.h>
#endif