From a2920800007c291bdf2b5264622cbc713d4961ee Mon Sep 17 00:00:00 2001 From: default Date: Sat, 25 May 2024 08:24:08 +0200 Subject: Backport from xs (fix regex.h compilation with tcc). --- xs_regex.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'xs_regex.h') diff --git a/xs_regex.h b/xs_regex.h index cdb2cf8..d8d2d1d 100644 --- a/xs_regex.h +++ b/xs_regex.h @@ -16,6 +16,11 @@ xs_list *xs_regex_replace_in(xs_str *str, const char *rx, const char *rep, int c #ifdef XS_IMPLEMENTATION +#ifdef __TINYC__ +/* fix a compilation error in tcc */ +#define _REGEX_NELTS(n) +#endif + #include xs_list *xs_regex_split_n(const char *str, const char *rx, int count) -- cgit v1.2.3