From e8c765c55ca00a484c69c3e7a6150bff975a06a8 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Thu, 6 May 2021 17:24:04 -0400 Subject: Disable regex on windows --- lib/cleanpath.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/cleanpath.c b/lib/cleanpath.c index d1c9637..ab6525b 100644 --- a/lib/cleanpath.c +++ b/lib/cleanpath.c @@ -62,8 +62,10 @@ struct CleanPath *cleanpath_init(const char *path, const char *sep) { * @note CLEANPATH_FILTER_EXACT is the default mode */ void cleanpath_filter(struct CleanPath *path, unsigned mode, const char *pattern) { - int match; +#if !OS_WINDOWS regex_t regex; +#endif + int match; for (size_t i = 0; path->part[i]; i++) { match = 0; -- cgit