Use system regex on MSYS2, TRE only for pure MinGW (CBM_USE_TRE)

This commit is contained in:
Martin Vogel
2026-03-19 02:05:20 +01:00
parent 07f82b9c54
commit 5f7cd226cb
+3 -3
View File
@@ -8,9 +8,9 @@
#include <string.h>
#ifdef _WIN32
#ifdef CBM_USE_TRE
/* ── Windows: use vendored TRE ───────────────────────────────── */
/* ── Vendored TRE regex (for environments without system <regex.h>) ── */
#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 */