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 */