From 5f7cd226cbb83edd693b84a769ddd5c8fdc131c8 Mon Sep 17 00:00:00 2001 From: Martin Vogel Date: Thu, 19 Mar 2026 02:05:20 +0100 Subject: [PATCH] Use system regex on MSYS2, TRE only for pure MinGW (CBM_USE_TRE) --- src/foundation/compat_regex.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/foundation/compat_regex.c b/src/foundation/compat_regex.c index 0ea000c3a..715ffbbe2 100644 --- a/src/foundation/compat_regex.c +++ b/src/foundation/compat_regex.c @@ -8,9 +8,9 @@ #include -#ifdef _WIN32 +#ifdef CBM_USE_TRE -/* ── Windows: use vendored TRE ───────────────────────────────── */ +/* ── Vendored TRE regex (for environments without system ) ── */ #include "../../vendored/tre/regex.h" _Static_assert(sizeof(regex_t) <= 256, "cbm_regex_t opaque buffer too small for TRE regex_t"); @@ -120,4 +120,4 @@ void cbm_regfree(cbm_regex_t *r) { regfree(re); } -#endif /* _WIN32 */ +#endif /* CBM_USE_TRE */