#ifndef _WIMLIB_WILDCARD_H
#define _WIMLIB_WILDCARD_H
-#include <wimlib/types.h>
+#include "wimlib/types.h"
+
+struct wim_dentry;
#define WILDCARD_FLAG_WARN_IF_NO_MATCH 0x00000001
#define WILDCARD_FLAG_ERROR_IF_NO_MATCH 0x00000002
void *consume_dentry_ctx,
u32 flags);
-#ifdef __WIN32__
-extern int
-fnmatch(const tchar *pattern, const tchar *string, int flags);
-# define FNM_CASEFOLD 0x1
-# define FNM_PATHNAME 0x2
-# define FNM_NOESCAPE 0x4
-# define FNM_NOMATCH 1
-#else
-# include <fnmatch.h>
-# ifndef FNM_CASEFOLD
-# warning "FNM_CASEFOLD not defined!"
-# define FNM_CASEFOLD 0
-# endif
-#endif
+extern bool
+match_path(const tchar *path, size_t path_nchars,
+ const tchar *wildcard, tchar path_sep, bool prefix_ok);
#endif /* _WIMLIB_WILDCARD_H */